Skip to content

Conversation

@Seramis
Copy link
Member

@Seramis Seramis commented Dec 16, 2025

Description

Improved code path generating new Ulids. Using ref pointers instead of Span<> to avoid unnecessary bounds checking.
Similar improvements done to ToString() and Parse() code paths.
README updated with fresh benchmark data.
Nugets updated.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Other (please specify): Performance improvements

Checklist

  • The PR is submitted to the correct branch (main).
  • My code follows the project's coding style. (.editorconfig)
  • I have commented my code, particularly in hard-to-understand areas and public interfaces.
  • I have added or updated tests for the changes I made.
  • All new and existing tests passed.
  • I have updated the documentation where applicable.

…est for timestamp and random validation. Rewrote ULID generation methods to use refs instead of Spans for performance.

Updated benchmark results in README
… access, improving performance and eliminating bounds checks.

Updated benchmark results in README.
@Seramis Seramis self-assigned this Dec 16, 2025
@Seramis Seramis changed the title Performance improvements on new Ulid generation and Parse()/ToString() Performance improvements on new Ulid generation and Parse()/ToString() Dec 16, 2025
@Seramis Seramis merged commit 7fe6e74 into ByteAether:main Dec 16, 2025
5 checks passed
@Seramis Seramis deleted the PerformanceImprovements branch December 16, 2025 12:03
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.

1 participant