PS5NorModifier icon indicating copy to clipboard operation
PS5NorModifier copied to clipboard

Significantly faster BIOS exports

Open ScrubN opened this issue 7 months ago • 2 comments

Although still not optimal, this drops BIOS export times from almost a minute to less than a second.

  • Because File.WriteAllBytes overwrites the file if it exists, only the final write is needed.
  • Additionally, I rewrote PatternAt to use spans instead of LINQ, which removes 2 heap allocations per comparison (from Skip and Take) and uses a SIMD vectorized comparison function instead of the while-loop based sequence compare from LINQ.

ScrubN avatar May 09 '25 03:05 ScrubN

lgtm

syntaxsdev avatar May 09 '25 04:05 syntaxsdev

great changes mate, there can always be a better wheel ;)

G2G2G2G avatar May 12 '25 09:05 G2G2G2G