Skip to content

Conversation

@ScrubN
Copy link

@ScrubN ScrubN commented May 9, 2025

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 ScrubN changed the title Faster export Significantly faster BIOS exports May 9, 2025
@syntaxsdev
Copy link

lgtm

Copy link

@weirdindiankid weirdindiankid left a comment

Choose a reason for hiding this comment

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

LGTM

@G2G2G2G
Copy link

G2G2G2G commented May 12, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants