Skip to content

Precompute ANSI escape sequences at compile time - #15749

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:perf/io-ansi-precompute-sequences
Aug 14, 2026
Merged

Precompute ANSI escape sequences at compile time#15749
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:perf/io-ansi-precompute-sequences

Conversation

@preciz

@preciz preciz commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Assisted-by: Antigravity:Gemini-3.7-Flash

Build named ANSI sequences once while defining their functions instead of interpolating their static components at runtime. Reuse the resulting literal in format_sequence/1 as well.

Build named ANSI sequences once while defining their functions instead of interpolating their static components at runtime. Reuse the resulting literal in format_sequence/1 as well.

Assisted-by: Antigravity:Gemini-3.7-Flash
@josevalim
josevalim merged commit a704e91 into elixir-lang:main Aug 14, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants