-
released this
2025-09-03 00:02:56 +02:00 | 977 commits to main since this releaseSafety Fix
Removed
- Removed dangerous
countNouns()andcountVerbs()methods from interface - These methods would be unsafe with millions of entries
Architecture Clarification
Brainy already has a scalable incremental statistics system:
- Counts are maintained via
incrementStatistic()when items are added - Counts are decremented via
decrementStatistic()when items are deleted - Statistics are cached in memory and batched to storage
- Access counts via
getStatistics()- no iteration needed - Safe for millions of entries
Why This Matters
- The removed count methods would iterate through ALL items
- With millions of entries, this causes memory/performance issues
- The existing statistics system tracks counts incrementally
- Much more scalable approach that's already built-in
This is a safety improvement that prevents dangerous implementations while the proper scalable counting system is already in place.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
1 download
- Removed dangerous