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

Improve emulation speed of large object allocations in Go #11844

Open
Inphi opened this issue Sep 11, 2024 · 0 comments
Open

Improve emulation speed of large object allocations in Go #11844

Inphi opened this issue Sep 11, 2024 · 0 comments
Labels
A-cannon Area: cannon

Comments

@Inphi
Copy link
Contributor

Inphi commented Sep 11, 2024

Allocating large objects (i.e. > 32 KiB) takes a while under Cannon. On my machine (AMD Ryzen 7 3700X), it takes about 7 seconds to allocate a 32 MB byte slice (i.e. execute a single runtime.makeslice call). It takes roughly the same amount of time for even larger allocations.

This doesn't seem to slow down op-program execution too much. Probably because it doesn't create too many large objects. However, we should improve this aspect of emulation to avoid future surprises.

@Inphi Inphi changed the title Improve emulation speed of Go allocation Improve emulation speed of large object allocations in Go Sep 11, 2024
@Inphi Inphi added the A-cannon Area: cannon label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cannon Area: cannon
Projects
Development

No branches or pull requests

1 participant