Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize realpath() for template loading #1967

Merged
merged 9 commits into from
Jan 10, 2023
Merged

Conversation

mvorisek
Copy link
Member

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.

@mvorisek mvorisek merged commit 5b29c7f into develop Jan 10, 2023
@mvorisek mvorisek deleted the fix_realpath_perf branch January 10, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant