Replies: 1 comment 6 replies
-
You can wrap them in a once when you need it... What would be the problem with that? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Those are very hungry methods which call multiple array methods and internal reflection methods
I think it's a good idea to wrap the result in the new
once
helper as they have a static output because classes cannot be redefined in phpWhile for some cases it will cache the result in memory that will only be used once, if it's used multiple times, it could improve performances quite a bit
Thoughts? Maybe a benchmark on memory/speed to see if worth it?
Beta Was this translation helpful? Give feedback.
All reactions