Closed fatganz closed 9 years ago
Would move towards plain PHP array in separate file required only once to hydrate Currency data field help with performance?
Yes, once PHP file is cached by PHP accelerator it won't read it form filesystem until it's changed.
Is this what you wanted?
https://github.com/keiosweb/moneyright/commit/3497132fd0a65346b9a509099b7fdd893558448d
Tests pass, merged to master, released https://github.com/keiosweb/moneyright/releases/tag/v1.0.5
Yes, exactly. Good job :+1:
:+1:
Using JSON as currency data storage degrades library performance. I specifically have in mind web case when OP code accelerator is used. For me it gives ~10% speed decrease because JSON should be re-read every time when web request is happening.