Skip to content

[3.0] Enhance data handling and improve code readability#9191

Open
live627 wants to merge 17 commits intoSimpleMachines:release-3.0from
live627:perf/packman
Open

[3.0] Enhance data handling and improve code readability#9191
live627 wants to merge 17 commits intoSimpleMachines:release-3.0from
live627:perf/packman

Conversation

@live627
Copy link
Copy Markdown
Contributor

@live627 live627 commented Apr 21, 2026

This branch is focused on performance optimizations for package lists. Most changes focus on temporary string management and code readability.

  • Rewrites tar reader to minimize temporary string creation
  • Refactors directory traversal code for improved readability
  • Extracts data only when certain a file is needed, reducing unnecessary operations
  • Assigns individual sorting variables to each list for better data management
  • Removes ID display from output
  • Applies HTML entities during display rather than storing them in source

@jdarwood007
Copy link
Copy Markdown
Member

@live627
Would any of the changes here address #8689 ?

Comment thread Sources/PackageManager/PackageUtils.php Outdated
Comment thread Sources/PackageManager/PackageUtils.php Outdated
Comment on lines +3885 to +3898

/**
* crc32 doesn't work as expected on 64-bit functions - make our own.
* https://php.net/crc32#79567
*
* @param string $number
* @return string The crc32
*/
private static function smf_crc32(string $number): string
{
require_once Config::canonicalPath(Config::$sourcedir . '/Subs-Compat.php');

return smf_crc32($number);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this been brought back?

Comment thread Sources/PackageManager/PackageUtils.php Outdated
live627 and others added 2 commits April 30, 2026 22:55
Co-authored-by: Jon Stovell <jonstovell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants