aboutsummaryrefslogtreecommitdiff
path: root/src/support/lockedpool.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix some typosfsb40002016-11-281-1/+1
|
* LockedPool: avoid quadratic-time allocationKaz Wesley2016-11-021-22/+2
| | | | | Use separate maps for used/free chunks to avoid linear scan through alloced chunks for each alloc.
* support: Add LockedPoolWladimir J. van der Laan2016-10-271-0/+251
Add a pool for locked memory chunks, replacing LockedPageManager. This is something I've been wanting to do for a long time. The current approach of locking objects where they happen to be on the stack or heap in-place causes a lot of mlock/munlock system call overhead, slowing down any handling of keys. Also locked memory is a limited resource on many operating systems (and using a lot of it bogs down the system), so the previous approach of locking every page that may contain any key information (but also other information) is wasteful.