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

aot: move jl_insert_backedges to Julia side #56499

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Nov 8, 2024

With #56447, the dependency between jl_insert_backedges and method insertion has been eliminated, allowing jl_insert_backedges to be performed after loading. As a result, it is now possible to move jl_insert_backedges to the Julia side.

Currently this commit simply moves the implementation without adding any new features.

@aviatesk aviatesk requested a review from vtjnash November 8, 2024 08:47
@aviatesk aviatesk force-pushed the avi/move-staticdata_utils-julia branch from 4959411 to 2eafa61 Compare November 8, 2024 10:49
@gbaraldi
Copy link
Member

gbaraldi commented Nov 8, 2024

Does this have any performance diff?

@aviatesk
Copy link
Member Author

aviatesk commented Nov 8, 2024

Moving the implementation to Julia seems to result in a slight increase in allocations, but considering the potential for future improvements, it doesn’t seem like a significant issue

julia> @time using Debugger
  0.287086 seconds (63.56 k allocations: 3.548 MiB) # master
  0.280408 seconds (67.28 k allocations: 4.210 MiB) # this PR

With #56447, the dependency between `jl_insert_backedges`
and method insertion has been eliminated, allowing `jl_insert_backedges`
to be performed after loading. As a result, it is now possible to move
`jl_insert_backedges` to the Julia side.

Currently this commit simply moves the implementation without adding
any new features.
@aviatesk aviatesk force-pushed the avi/move-staticdata_utils-julia branch from 2eafa61 to 718aea8 Compare November 9, 2024 11:02
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