-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimizes memory usage of AliasCache (#432)
Changes the storage datastructure in AliasCache to use less memory. The new structure uses 16-bit indexes instead of pointers, and a sorted array of 16-bit indexes instead of red-black trees for the lookup methods. The LRU double-linked list is kept. With this change the memory cost goes from 88 bytes per entry to 16 bytes per entry. The compiled code size is also smaller. === * Changes the storage datastructure in AliasCache to use less memory. The new structure uses 16-bit indexes instead of pointers, and a sorted array of 16-bit indexes instead of red-black trees for the lookup methods. The LRU double-linked list is kept. With this change the memory cost goes from 88 bytes per entry to 16 bytes per entry. The compiled code size is also smaller. * fix whitespaces * Add more comments. * fix comment typos.
- Loading branch information
1 parent
7ec055a
commit e1b0c2d
Showing
4 changed files
with
342 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.