Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Aug 5, 2025

This commit differentiate arena initial sizes based on usage patterns:

  • INSN_ARENA: 512 KiB (high instruction allocation volume)
  • BB_ARENA, GENERAL_ARENA: 64 KiB (low usage patterns)
  • Others: 256 KiB (default for moderate usage)

It can reduce initial memory allocation.

Item commit cc0741f commit 621ed76
BLOCK_ARENA 262144 262144
INSN_ARENA 262144 524288
BB_ARENA 262144 65536
HASHMAP_ARENA 262144 262144
GENERAL_ARENA 262144 65536

This commit differentiate arena initial sizes based on usage patterns:
* INSN_ARENA: 512 KiB (high instruction allocation volume)
* BB_ARENA, GENERAL_ARENA: 64 KiB (low usage patterns)
* Others: 256 KiB (default for moderate usage)

It can reduce initial memory allocation.
@jserv jserv requested review from ChAoSUnItY and DrXiao August 5, 2025 09:48
@jserv jserv merged commit ea1b6ab into master Aug 5, 2025
12 checks passed
@jserv jserv deleted the arena-alloc branch August 5, 2025 13:11
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.

3 participants