mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Introduce `NORMALIZED_MARKER` Symbol to mark normalized items. - Optimize `normalizeDto` to return existing object if marked. - Optimize `normalizeItems` to scan for markers and return input array if all items are valid and marked, avoiding unnecessary array allocation and object re-creation. - Preserve safety logic in `runFeed` (handle nulls and always call normalizer) while benefiting from internal optimization. Benchmark results show ~9x speedup for "Same Instance" updates and ~5x speedup for "Copy Array" updates in the feed pipeline. Co-authored-by: PR0M3TH3AN <[email protected]>