sebastiaandegeus/tradusi — pull request #5 by rolfvandekrol (2012-08-23 11:33:33+00:00)
Title: Performance

Your current code and idea looks promising. It however did not statically cache the contents of the JSON file, so every call to `___` en `__e` would result in loading the file and parsing of the JSON.

Furthermore your code passed around the whole array of translations (which can be potentially huge). Because the way arrays work in PHP, the array would be copied a few times in memory.