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

Specify type on CodeInfo.slotnames #31541

Merged
merged 1 commit into from
Mar 31, 2019
Merged

Specify type on CodeInfo.slotnames #31541

merged 1 commit into from
Mar 31, 2019

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented Mar 29, 2019

julia.h is more specific on this point than the type declaration. Is there any reason not to make it a Vector{Symbol}?

This is a surprisingly hot spot for JuliaInterpreter, e.g., https://github.com/JuliaDebug/JuliaInterpreter.jl/blob/ceee9c06dae85c79d5e7e918e4ed8c68ef5b180f/src/construct.jl#L264 (frame data preparation is our biggest cost for many workloads).

@Keno
Copy link
Member

Keno commented Mar 29, 2019

I don't see any reason not to just make it Vector{Symbol}.

@timholy timholy merged commit 5191810 into master Mar 31, 2019
@timholy timholy deleted the teh/codeinfo_types branch March 31, 2019 10:46
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.

None yet

3 participants