Bug #6433
closed
Performance of latest releases page/module slowly degrading
Added by krileon almost 8 years ago.
Updated over 7 years ago.
Start date:
16 January 2017
Description
As more files are added the performance of latest releases page/module is gradually degrading. This is because it has to parse through all the files and build a list of latest releases. This performance needs to be improved significantly somehow and is likely due to so much file read access.
- % Done changed from 0 to 50
Large chunk of the performance loss was from modifying package version arrays by reference and not caching any of this. It no longer modifies by reference, but returns the access parsed packages and now caches. This translated to over 2k millisecond performance gain, which in total is roughly 30% performance gain.
- % Done changed from 50 to 60
Added caching for version files check when a zip is opened. The file list for the zip will now cache instead of re-opening over and over. Performance gain now 34% total.
- Status changed from Assigned to Resolved
- % Done changed from 60 to 100
Improved params usages and added additional caching to loop cases. Final performance gain is roughly 45%.
- Target version changed from 792 to 6.0.0
- Status changed from Resolved to Closed
Also available in: Atom
PDF