Project

General

Profile

Actions

Bug #6433

closed

Performance of latest releases page/module slowly degrading

Added by krileon over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
16 January 2017
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

Updated by krileon almost 4 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.

Actions #2

Updated by krileon almost 4 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.

Actions #3

Updated by krileon almost 4 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%.

Actions #4

Updated by krileon almost 4 years ago

  • Target version changed from 792 to 6.0.0
Actions #5

Updated by krileon almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF