Skip to content

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Nov 25, 2025

📚 Description

Performance optimizations to reduce subprocess overhead in the test runner.

🔖 Changes

  • Replace type -t with declare -F for faster function existence checks
  • Optimize base64 encoding (use printf | base64 -w 0 instead of echo | base64 | tr)
  • Combine grep and sed operations in data provider lookup (single sed -nE pass)
  • Use case statement instead of tr subprocess for string capitalization
  • Cache state values to avoid repeated subshell invocations
  • Initialize temp directory once at startup instead of per temp_file() call

🖼️ Demo

BEFORE

image

AFTER

image

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass added the enhancement New feature or request label Nov 25, 2025
@Chemaclass Chemaclass self-assigned this Nov 25, 2025
@Chemaclass Chemaclass added the enhancement New feature or request label Nov 25, 2025
@Chemaclass Chemaclass enabled auto-merge November 26, 2025 00:12
@Chemaclass Chemaclass disabled auto-merge November 26, 2025 00:12
@Chemaclass Chemaclass merged commit d32aa5d into main Nov 26, 2025
16 checks passed
@Chemaclass Chemaclass deleted the perf/optimize-test-runner branch November 26, 2025 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants