mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Implemented a module-level `WeakMap` to cache the results of `collectVideoTags` keyed by video object. - This avoids repetitive tag parsing and normalization for the same video objects during `buildTagIdf` and `buildWatchHistoryTagCounts` cycles. - Measured ~20% performance improvement on repeated calls in benchmark. - Verified correctness with unit test covering cache hits and object mutations (simulated). Co-authored-by: PR0M3TH3AN <[email protected]>