Bug #6433
closedPerformance of latest releases page/module slowly degrading
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.
Updated by krileon over 7 years ago
- % 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.
Updated by krileon over 7 years ago
- % 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.
Updated by krileon over 7 years ago
- 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%.