Investigate string de-duplication, see if it would reduce Phan's memory usage.

#1 · open · 0 comments

View on GitHub ↗

TysonAndre

Recursively loop over objects and arrays (no cycles, each is reachable exactly once) and replace any strings in array values/object properties with the deduplicated or interned string. debug_zval_dump shows that literals in code aren't deduplicated.

Comments