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

Hint for Minimal Heap Size #4

Open
zzxx-husky opened this issue Jan 21, 2020 · 1 comment
Open

Hint for Minimal Heap Size #4

zzxx-husky opened this issue Jan 21, 2020 · 1 comment

Comments

@zzxx-husky
Copy link

zzxx-husky commented Jan 21, 2020

Hi, KanameShiki is quite nice! I wonder if it's possible to specify a minimal heap size that KanameShiki should hold, so that KanameShiki will allocate memory accodingly in advance.

The problem is that my program suffers from high delay at the beginning and I found the reason was that the memory allocator needs to frequently ask the OS for more memory at the beginning. When the amount of memory is sufficient, the delay becomes small. Therefore, I am looking for a memory allocator where I can tell it a minimal heap size so that the allocator can ask the OS for that amount of memory in advance, to avoid future frequent interaction with the OS. It would be better that the minimal heap size can be adjusted anytime during execution.

@EmuraDaisuke
Copy link
Owner

Thanks for trying KanameShiki.

There may be a trade-off between speed and convenience, but it's worth trying your ideas.
I can't promise when you can, but I'll try it.

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

No branches or pull requests

2 participants