Skip to content

Conversation

@jfitie
Copy link
Member

@jfitie jfitie commented Aug 27, 2025

…memory-efficient size limiting (#327)

  • 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)

* Thread-safe access to _annotations in DBMDataRef using lock

Signed-off-by: Johan Fitié <jfitie@gmail.com>

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

Signed-off-by: Johan Fitié <jfitie@gmail.com>

* Refactor to use constant for maximum annotations size

Signed-off-by: Johan Fitié <jfitie@gmail.com>

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

Signed-off-by: Johan Fitié <jfitie@gmail.com>

* Limit line length correctly

Signed-off-by: Johan Fitié <jfitie@gmail.com>

* Update copyright year, change maximum number of annotations

Signed-off-by: Johan Fitié <jfitie@gmail.com>

---------

Signed-off-by: Johan Fitié <jfitie@gmail.com>
@jfitie jfitie merged commit ddaa9ee into staging Aug 27, 2025
1 check passed
jfitie added a commit that referenced this pull request Aug 27, 2025
…memory-efficient size limiting (#327) (#328) (#329)

* 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>
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