Skip to content

Conversation

jserv
Copy link
Collaborator

@jserv jserv commented Aug 25, 2025

This replaces arena_calloc() with arena_alloc() + explicit init for frequently-allocated structures to eliminate unnecessary memset calls. Measurements show 36.4% reduction in memset calls (from 12,454 to 7,922) during compilation.

Summary by Bito

This pull request optimizes memory allocation by replacing arena_calloc with arena_alloc for frequently allocated structures. It includes explicit field initialization to reduce unnecessary memset calls, enhancing performance and efficiency in memory management.

This replaces arena_calloc() with arena_alloc() + explicit init for
frequently-allocated structures to eliminate unnecessary memset calls.
Measurements show 36.4% reduction in memset calls (from 12,454 to 7,922)
during compilation.
@jserv jserv merged commit 69dde47 into master Aug 25, 2025
12 checks passed
@jserv jserv deleted the reduce-memset branch August 25, 2025 13:39
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