Skip to content

Conversation

@jfitie
Copy link
Member

@jfitie jfitie commented Aug 27, 2025

…memory-efficient size limiting (#327) (#328)

  • Thread-safe access to _annotations in DBMDataRef using lock

  • Limit _annotations dictionary size to 10,000 by removing entries when exceeded

  • Refactor to use constant for maximum annotations size

  • Refactor _annotations to use SortedDictionary for FIFO eviction instead of random removal

  • Limit line length correctly

  • Update copyright year, change maximum number of annotations


…memory-efficient size limiting (#327) (#328)

* Thread-safe access to _annotations in DBMDataRef using lock



* Limit _annotations dictionary size to 10,000 by removing entries when exceeded



* Refactor to use constant for maximum annotations size



* Refactor _annotations to use SortedDictionary for FIFO eviction instead of random removal



* Limit line length correctly



* Update copyright year, change maximum number of annotations



---------

Signed-off-by: Johan Fitié <jfitie@gmail.com>
@jfitie jfitie merged commit 16693c5 into master Aug 27, 2025
1 check passed
@jfitie jfitie deleted the staging branch August 29, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants