PS5NorModifier
PS5NorModifier copied to clipboard
Significantly faster BIOS exports
Although still not optimal, this drops BIOS export times from almost a minute to less than a second.
- Because
File.WriteAllBytesoverwrites the file if it exists, only the final write is needed. - Additionally, I rewrote
PatternAtto use spans instead of LINQ, which removes 2 heap allocations per comparison (fromSkipandTake) and uses a SIMD vectorized comparison function instead of the while-loop based sequence compare from LINQ.
lgtm
great changes mate, there can always be a better wheel ;)