-
Notifications
You must be signed in to change notification settings - Fork 465
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
perf: use C23's free_sized
when available
#6598
Conversation
38cb62a
to
96ee3bf
Compare
This only has an effect on systems with a default allocator where `free_sized` is faster than `free`. See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2699.htm for an explanation of this feature. Co-authored-by: Eric Wieser <[email protected]>
96ee3bf
to
80cba6a
Compare
Mathlib CI status (docs):
|
@eric-wieser Are you not using the small allocator? |
Our hope was that https://github.com/google/tcmalloc might be just as good for our use case, but this would only be the case if tcmalloc actually gets access to the same size information that the small allocator has (through |
@eric-wieser Thanks for the explanation. I assume you tested it successfully with a compiler supporting it :) ? |
@Kha: yes, I tested this patch applied to lean v4.14.0 and it happy builds mathlib. |
Reverts #6598, which broke Windows CI
See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2699.htm for an explanation of this feature. --------- Co-authored-by: Chris Kennelly <[email protected]>
…er#6841) Reverts leanprover#6598, which broke Windows CI
…ver#6844) Unreverts leanprover#6598 I'll combine leanprover#6825 into this before merging.
See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2699.htm for an explanation of this feature. --------- Co-authored-by: Chris Kennelly <[email protected]>
…er#6841) Reverts leanprover#6598, which broke Windows CI
…ver#6844) Unreverts leanprover#6598 I'll combine leanprover#6825 into this before merging.
See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2699.htm for an explanation of this feature.