Repository navigation
Added batched rolls and benchmarking features - #2
Merged
Merged
Conversation
DarthPedro
commented
Oct 12, 2026
Contributor
- Updated package references to newest versions.
- Fixed DiceCli commands due to breaking changes in Spectre.Console.Cli Command and AsyncCommand base classes.
- Added RollMany() overloads to IDice for rolling a dice expression multiple times and returning a list of DiceResults.
- Enabled trimming and Native AOT support for the DiceNotation library by replacing dynamic dispatch in Evaluator with a type-safe switch expression, adding a source-generated DieTrackingJsonContext for JSON serialization, and annotating UseRollTracker<TTracker, TService>() with DynamicallyAccessedMembers for generic service registration.
- Added DiceNotation Benchmarks project to measure performance of the DiceNotation library and compare different die rollers.
- Fixed 3 high memory allocation issues in the Lexer, Parser, and Evaluator for hot paths when rolling the same notation repeatedly. Save 78% of allocations when rolling the same notation repeatedly (with improvement to speed too).
…to Spectre.Console.Cli breaking change to Command and AsyncCommand.
…tiple times and returning a list of DiceResults.
…by replacing dynamic dispatch.
…iceNotation library and compare different die rollers.
…essions on new features. Fixed 3 high memory allocation issues that reduces memory usage by 78% and improves Roll performance as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.