graph-node
graph-node copied to clipboard
Improve memory efficiency of `EntityCache`
This PR makes the EntityCache more memory efficient, meaning the same amount of memory will be able to store more entities with two changes:
- Use
Word(Box<str>) for entity types and ids - Remove the subgraph id from
EntityKeysince that adds an overhead of 70 bytes for every cache entry