-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Labels
Milestone
Description
There are a lot of caches in the code designed to map between CPID metadata, blocks, projects etc. Some data such as block hashes and CPID strings are duplicated among these caches, causing unnecessary memory waste. There should be a more clever way of storing this data so that we can still cache without wasting too much RAM.
- Move relevant CPID data into StructCPID
- Implement a StructCPID pool
- Use pointers to CPID structs instead of duplicating them
- Traverse relevant caches when blocks are detached