Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(nim): use compile-time string formatting #13945

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

arnetheduck
Copy link
Member

Nim 2.2 comes with compile-time string formatting that doesn't raise exceptions if the format string is invalid - instead a compile-time error is given.

This PR introduces a backport of that feature which improves performance and reduces the risk that formatting causes the app to crash and will help migrating the codebase to newer nim versions that track exceptions more carefully.

There should be no change in runtime behavior (except formatting being a bit faster)

Nim 2.2 comes with compile-time string formatting that doesn't raise
exceptions if the format string is invalid - instead a compile-time
error is given.

This PR introduces a backport of that feature which improves performance
and reduces the risk that formatting causes the app to crash and will
help migrating the codebase to newer nim versions that track exceptions
more carefully.

There should be no change in runtime behavior (except formatting being a
bit faster)
@status-im-auto
Copy link
Member

status-im-auto commented Mar 13, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 2bd7623 #1 2024-03-13 08:59:38 ~6 min tests/nim 📄log
✔️ 2bd7623 #1 2024-03-13 09:00:18 ~7 min macos/aarch64 🍎dmg
✔️ 2bd7623 #1 2024-03-13 09:03:08 ~9 min macos/x86_64 🍎dmg
✔️ 2bd7623 #1 2024-03-13 09:03:54 ~10 min tests/ui 📄log
✔️ 2bd7623 #1 2024-03-13 09:09:44 ~16 min linux/x86_64 📦tgz
✔️ 2bd7623 #1 2024-03-13 09:23:04 ~29 min windows/x86_64 💿exe

@arnetheduck arnetheduck merged commit fc16b81 into master Mar 13, 2024
8 checks passed
@arnetheduck arnetheduck deleted the ct-strformat branch March 13, 2024 17:38
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.

None yet

4 participants