microsoft / microsoft/mimalloc
Use MEM_64K_PAGES?
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
I’ve been working on the [FPC memory manager](https://gitlab.com/freepascal.org/fpc/source/-/blob/main/rtl/inc/heap.inc) for some time and noticed that [`MEM_64K_PAGES`](https://gitlab.com/freepascal.org/fpc/source/-/blob/main/rtl/win/sysheap.inc) speeds it up by 300 ms per GB touched (Windows 10 x64). Have you tried that? (Wonder why they don’t transparently enable it for all `VirtualAlloc`s that qualify.)
Contributor guide
No contributing guide indexed for this repository
Research direction
Compare the referenced rtl/win/sysheap.inc use of MEM_64K_PAGES with mimalloc’s Windows VirtualAlloc behavior, starting by determining which allocations could qualify. Benchmark Windows 10 x64 performance and verify that any proposed use preserves correct allocation behavior; done means a measured benefit and a clear decision on whether to adopt it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100