amnuts / opcache-gui

A clean, effective and responsive interface for Zend OPcache
1.21k stars 197 forks source link

Excessive load time, file usage tab #53

Closed 7starsone closed 3 years ago

7starsone commented 3 years ago

Hello, when cache is empty or you have a few files the script is fast but if you have something like eg. used memory: 676.69MB number of cached files: 65,856

it takes too much to load the page, even 2 minutes or more I didn't take a look at the code but in my opinion the issue is the number of files because you don't paginate and you load all the cached files references at once. File usage tab? So, it's really slow to invalidate a file in this situation. Can you fix it, please?

Thanks

7starsone commented 3 years ago

To make it perfect: 1) load all the references into an array (fast) 2) let the user choose how many elements of that array in one page (or at least, find a compromise testing for speed, eg. 50 elements on a page? No elements on the pages at all (by user option, maybe) and just use the quick filter (that's well done)? That's it...really fast this way. Hope this helps

amnuts commented 3 years ago

Thanks for reporting.

Sounds like a sensible idea to me so I'll look into making those changes in the near future.

7starsone commented 3 years ago

I would be grateful if you wrote here after the change, in order to be notified Thanks 👍 😄

amnuts commented 3 years ago

@7starsone , I'm working on a new branch - v3 - which moves all the frontend to be in React and has pagination for the files. I've tried it out with 65K files and it worked quite nicely. The branch isn't quite ready to move into master yet - I've a few more tidy-ups and docs to finish up, but feel free to check it out and see if it'll work out for you.

amnuts commented 3 years ago

@7starsone, I've now merged into master and released version 3.0.0 which includes the pagination functionality.