You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I belive there is some exponential complexity when traversing directories with depth like 10 as xdebug profiler shows for 2181 calls of getContentgetChild is executed more than million times.
Callers:
The text was updated successfully, but these errors were encountered:
mvorisek
changed the title
Somethings has absurd complexityvfsStreamDirectory::getChild() has absurd complexity
May 28, 2021
To get started, I think you didn't have a look at the code in this method. If you did, you would have noticed that this method has some recursion. Maybe there is some bug in there, but I cannot see in your reports what the actual calls are about. The method itself isn't that complex.
I would like to ask you to re-think your post, although it provides a lot of information about how you are using vfsStream, it doesn't really provide any information about what we as maintainers can do to fix this issue. If it was an issue in vfsStream. It would be useful if you could provide us some more information about what the arguments of these calls are.
Please keep in mind that some caching libraries have odd file structures which are optimized to do quick inode lookups which do work very well in regular filesystems. But will not perform as nice in vfsStream. Therefor vfsStream might not be the right choice for you to cache your smarty templates.
captured when the PrestaShop/Smarty caching is conigured to VFS like:
in https://github.com/PrestaShop/PrestaShop/blob/1.7.7.4/config/smarty.config.inc.php#L37
and basic page like
/index.php
is opened.I belive there is some exponential complexity when traversing directories with depth like 10 as xdebug profiler shows for 2181 calls of
getContent
getChild
is executed more than million times.Callers:
The text was updated successfully, but these errors were encountered: