Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile.getdict!: Revert drive-by change-of-behavior in performance patch #45403

Closed
wants to merge 1 commit into from

Conversation

tkluck
Copy link
Contributor

@tkluck tkluck commented May 20, 2022

The pull request #43816 is supposed to be a performance improvement (only), but also changes behaviour: it's now possible for getdict!(dict, data) to return with some elements of data not a valid key in dict.

Maybe this is a desired improvement now that data also contains metadata about taskid and threadid, but it's certainly breaking at least one registered package (which I reported as #45361).

I propose we keep the performance improvement but revert the change in behaviour. We can then discuss the behaviour's merit in a separate pull request if desired, without the time pressure of the imminent v1.8 release.

The pull request JuliaLang#43816 is supposed to be a performance improvement
(only), but also changes behaviour: it's now possible for
`getdict!(dict, data)` to return with some elements of `data` not
a valid key in `dict`.

Maybe this is a desired improvement now that `data` also contains
metadata about taskid and threadid, but it's certainly breaking
at least one registered package (which I reported as JuliaLang#45361).

I propose we keep the performance improvement but revert the change
in behaviour. We can then discuss the behaviour's merit in a separate
pull request if desired, without the time pressure of the imminent
v1.8 release.
Copy link
Member

@KristofferC KristofferC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IanButterworth IanButterworth changed the title Revert drive-by change-of-behavior in performance patch Profile.getdict!: Revert drive-by change-of-behavior in performance patch May 23, 2022
@tkluck tkluck closed this May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants