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

Save a couple loads/stores in sweep pages #49263

Merged
merged 4 commits into from
Apr 20, 2023

Conversation

gbaraldi
Copy link
Member

@gbaraldi gbaraldi commented Apr 5, 2023

We do a load/store on every iteration, keep a temporary instead, It's a very small difference but it's visible in vtune

@oscardssmith
Copy link
Member

Why the change from uint8 to uint32 (and why not uint64?)

@gbaraldi
Copy link
Member Author

gbaraldi commented Apr 5, 2023

uint64 is probably slow on 32bit and it's annoying having to have two different codepaths, also 32bit already gets us whatever performance we could get here. Just not doing the loads every iteration already helped quite a bit.

src/gc.c Outdated Show resolved Hide resolved
src/gc.c Show resolved Hide resolved
@giordano giordano added the GC Garbage collector label Apr 5, 2023
@oscardssmith oscardssmith added the performance Must go faster label Apr 5, 2023
@vtjnash vtjnash merged commit f84fb5b into JuliaLang:master Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GC Garbage collector performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants