Skip to content

sqf: Optimize toString for code#1196

Draft
PabstMirror wants to merge 4 commits intomainfrom
toString
Draft

sqf: Optimize toString for code#1196
PabstMirror wants to merge 4 commits intomainfrom
toString

Conversation

@PabstMirror
Copy link
Copy Markdown
Collaborator

Allow optimizing away toString {code} to just the processed code string
e.g. avoid
configProperties [(configFile >> "CfgAmmo" >> _ammo), QUOTE(configName _x == QUOTE(QUOTE(ADDON))), false];

need to verify that this is always safe.
arma will throw error on invalid syntax
toString { a b }
but so will hemtt
is there anyway this could introduce errors?

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.3%. Comparing base (8b0b83e) to head (46a1af1).

Files with missing lines Patch % Lines
libs/sqf/src/compiler/optimizer/mod.rs 73.9% 6 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
libs/sqf/src/compiler/optimizer/mod.rs 83.7% <73.9%> (-0.7%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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