Skip to content

Improve performance of scanning Elixir files - #20768

Open
g4lb wants to merge 1 commit into
tailwindlabs:mainfrom
g4lb:perf/oxide-elixir-sigil-scan
Open

g4lb wants to merge 1 commit into
tailwindlabs:mainfrom
g4lb:perf/oxide-elixir-sigil-scan

Conversation

@g4lb

@g4lb g4lb commented Nov 26, 2026

Copy link
Copy Markdown

Summary

The Elixir pre-processor checked each byte for a sigil marker (~). Now it jumps to the next ~ with find_byte. The output does not change.

pre_process_input Before After Change
.heex, 800 lines 16.9 µs 2.06 µs -87.8%

Test plan

  • cargo test -p tailwindcss-oxide passes.
  • Old and new output matched on 1M random inputs.

@g4lb
g4lb requested a review from a team as a code owner November 26, 2026 01:45
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