Skip to content

Optimize realpath() for template loading#1967

Merged
mvorisek merged 9 commits intodevelopfrom
fix_realpath_perf
Jan 10, 2023
Merged

Optimize realpath() for template loading#1967
mvorisek merged 9 commits intodevelopfrom
fix_realpath_perf

Conversation

@mvorisek
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

1 participant