Skip to content

perf: optimise clb core logic#12

Open
sidnz wants to merge 1 commit intocrswll:mainfrom
sidnz:optimise-core-logic
Open

perf: optimise clb core logic#12
sidnz wants to merge 1 commit intocrswll:mainfrom
sidnz:optimise-core-logic

Conversation

@sidnz
Copy link
Copy Markdown

@sidnz sidnz commented Apr 22, 2026

  • Pre-compute variantKeys and compoundConditions at schema-creation time (avoids redundant work on every builder call)
  • Removed isBoolean helper - inlined into toStringIfBoolean
  • isSimpleSubset uses Object.keys instead of Object.entries
  • Early return guard uses !x.length over x.length === 0
  • Just optimisations - all 25 existing tests pass

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