Skip to content

Consolidate internal caches #230

@denravonska

Description

@denravonska

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions