Serialization: replace findfirst-esque loop with static lookup table#61730
Serialization: replace findfirst-esque loop with static lookup table#61730adienes wants to merge 4 commits intoJuliaLang:masterfrom
findfirst-esque loop with static lookup table#61730Conversation
|
This should use |
vtjnash
left a comment
There was a problem hiding this comment.
Why is this so big it has to be recreated at runtime, instead of just storing as static data?
|
I didn't want to be relying on |
|
We guarantee it is stable |
|
only within a process, right? if we make the table static data my understanding is it will be computed at precompilation time. but then runtime calls to latest commit uses |
|
test failure appears to be #61737 |
|
This seems like a re-implementation of an |
|
there is a big performance difference, I think mainly because julia> d = IdDict{Any,Int32}();
julia> @allocated d[:foo] = Int32(12345)
16
julia> @allocated d[:foo]
16I could imagine |
for to make that we get better performance
no tags are changed, just the way we compute them. main thing to call out for review is that this adds an
__init__statementvs master
draft written by claude and then substantial fixes + rewritten by me.