Skip to content

Conversation

martindevans
Copy link
Member

Some minor improvements while working on this:

FixedSizeQueue

  • Enqueue would always stop one short of filling the capacity
  • Fill would only replace existing items. It was only used in a place where there were not existing items! Removed the method entirely.

LLamaGrammarElement

  • Converted into a record struct, removed all of the (now unnecessary) equality stuff.

FixedSizeQueue:
 - Enqueue would always stop one short of filling the capacity
 - Fill would only _replace_ existing items. It was only used in a place where there were not existing items! Removed the method entirely.

LLamaGrammarElement:
 - Converted into a `record` struct, removed all of the (now unnecessary) equality stuff.
@martindevans martindevans merged commit c6d5070 into SciSharp:master Nov 18, 2023
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