Skip to content

Perf: Optimize file extension check#278

Merged
Ruben2776 merged 1 commit intoRuben2776:devfrom
textGamex:filecheck-perf
Nov 29, 2025
Merged

Perf: Optimize file extension check#278
Ruben2776 merged 1 commit intoRuben2776:devfrom
textGamex:filecheck-perf

Conversation

@textGamex
Copy link
Contributor

Optimize file extension checks with alternate lookup for improved performance

Description

Benchmark

Method Mean Error StdDev Gen0 Allocated
Raw 12.622 ns 0.2880 ns 0.4311 ns 0.0017 32 B
FrozenSetLookup 8.536 ns 0.2006 ns 0.2310 ns - -

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@Ruben2776
Copy link
Owner

Thank you very much!

@Ruben2776 Ruben2776 merged commit 200c46c into Ruben2776:dev Nov 29, 2025
1 check passed
@textGamex textGamex deleted the filecheck-perf branch November 29, 2025 12:06
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.

2 participants