-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
unnecessary(?) allocations when hashing immutable types #10208
Labels
help wanted
Indicates that a maintainer wants help on an issue or pull request
performance
Must go faster
Comments
FWIW, implementing
solves the allocation issue. Using this workaround gave me an order of magnitude drop in memory allocation in my code. |
I think we are boxing the |
StefanKarpinski
added
help wanted
Indicates that a maintainer wants help on an issue or pull request
and removed
help wanted
Indicates that a maintainer wants help on an issue or pull request
labels
Oct 27, 2016
Keno
added a commit
that referenced
this issue
Apr 19, 2019
Introduce a fast path that passes the type and the data separately to jl_object_id_. Fixes the allocation performance problems noted in the issue, though the `Foo` version is still approx 4x slower, since the Int version doesn't have to go through a call to compute its hash. Fixing that is future work.
Keno
added a commit
that referenced
this issue
Apr 20, 2019
Introduce a fast path that passes the type and the data separately to jl_object_id_. Fixes the allocation performance problems noted in the issue, though the `Foo` version is still approx 4x slower, since the Int version doesn't have to go through a call to compute its hash. Fixing that is future work.
Keno
added a commit
that referenced
this issue
Apr 20, 2019
Introduce a fast path that passes the type and the data separately to jl_object_id_. Fixes the allocation performance problems noted in the issue, though the `Foo` version is still approx 4x slower, since the Int version doesn't have to go through a call to compute its hash. Fixing that is future work.
Keno
added a commit
that referenced
this issue
Apr 20, 2019
Introduce a fast path that passes the type and the data separately to jl_object_id_. Fixes the allocation performance problems noted in the issue, though the `Foo` version is still approx 4x slower, since the Int version doesn't have to go through a call to compute its hash. Fixing that is future work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
help wanted
Indicates that a maintainer wants help on an issue or pull request
performance
Must go faster
I traced an allocation bottleneck in my code to the following issue. See the snippet below:
It looks like the issue traces to allocations when calling
object_id
. Are these necessary, especially for bitstypes?The text was updated successfully, but these errors were encountered: