[Bug middle-end/114563] ggc_internal_alloc is slow

2024-04-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 --- Comment #5 from Richard Biener --- Btw, I'd say for the sake of avoiding virtual memory fragmentation free_unit should be equal to GGC_QUIRE_SIZE. But we should possibly merge adjacent entries we don't free to power-of-two chunks and

[Bug middle-end/114563] ggc_internal_alloc is slow

2024-04-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 --- Comment #4 from Richard Biener --- Created attachment 57858 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57858=edit better release_pages Ah, and it's not so much fragmentation but large free_unit (1MB) that's hard to get to. The

[Bug middle-end/114563] ggc_internal_alloc is slow

2024-04-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 --- Comment #3 from Richard Biener --- Created attachment 57856 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57856=edit quick skip-list patch Before: > /usr/bin/time ./cc1plus -quiet -o /dev/null /tmp/a-test-poly.ii -O 173.29user

[Bug middle-end/114563] ggc_internal_alloc is slow

2024-04-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 Richard Biener changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/114563] ggc_internal_alloc is slow

2024-04-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 Richard Biener changed: What|Removed |Added Keywords||compile-time-hog See Also|