atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io
MIT License
440 stars 105 forks source link

Optimize realpath() for template loading #1967

Closed mvorisek closed 1 year ago

mvorisek commented 1 year ago

Chasing 200 microseconds taken for each $x->add(new View()) call paid off. The problem was a realpath().

This PR cuts render time in half with many render tree Views, as every View usually loads a template.