Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Conversation

@johnnyt
Copy link
Member

@johnnyt johnnyt commented Aug 26, 2025

Optimizes assign action performance by pre-compiling expressions during creation rather than on every execution:

  • Pre-compile expressions during AssignAction creation
  • Pass compiled instructions directly to Predicator.evaluate/3
  • Simplified API by removing redundant _compiled function variants
  • ValueEvaluator.evaluate_and_assign accepts optional compiled expression
  • Direct predicator usage eliminates unnecessary compilation steps

Performance improvements:

  • Expressions compiled once during parsing instead of every execution
  • Direct instruction passing to predicator when available
  • Falls back to string evaluation when compiled version unavailable

Breaking changes: None - backward compatible API preserved

🤖 Generated with Claude Code

Optimizes assign action performance by pre-compiling expressions during
creation rather than on every execution:

- Pre-compile expressions during AssignAction creation
- Pass compiled instructions directly to Predicator.evaluate/3
- Simplified API by removing redundant _compiled function variants
- ValueEvaluator.evaluate_and_assign accepts optional compiled expression
- Direct predicator usage eliminates unnecessary compilation steps

Performance improvements:
- Expressions compiled once during parsing instead of every execution
- Direct instruction passing to predicator when available
- Falls back to string evaluation when compiled version unavailable

Breaking changes: None - backward compatible API preserved

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/sc/actions/assign_action.ex 80.00% 1 Missing ⚠️
lib/sc/value_evaluator.ex 92.30% 1 Missing ⚠️
Files with missing lines Coverage Δ
lib/sc/actions/assign_action.ex 94.73% <80.00%> (-5.27%) ⬇️
lib/sc/value_evaluator.ex 86.44% <92.30%> (-1.06%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@johnnyt johnnyt merged commit 43210c4 into main Aug 26, 2025
8 checks passed
@johnnyt johnnyt deleted the compile-instructions branch August 26, 2025 10:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants