Skip to content

perf: skip snippet lookup for pure-ASCII literals in unicode lints#17273

Open
xmakro wants to merge 1 commit into
rust-lang:masterfrom
xmakro:perf/unicode-ascii-fast-path
Open

perf: skip snippet lookup for pure-ASCII literals in unicode lints#17273
xmakro wants to merge 1 commit into
rust-lang:masterfrom
xmakro:perf/unicode-ascii-fast-path

Conversation

@xmakro

@xmakro xmakro commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The Unicode pass materialized a source snippet and ran an NFC scan for every string and char literal.

crate instructions base instructions new delta
ripgrep-14.1.0 1,969,530,498 1,949,901,380 -1.00%
regex-1.10.5 1,010,539,203 1,010,443,445 -0.01%
serde-1.0.204 7,203,876,358 7,201,522,528 -0.03%
ryu-1.0.18 271,039,372 270,958,429 -0.03%

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 19, 2026
@rustbot

rustbot commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 8 candidates
  • 8 candidates expanded to 8 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

No changes for 97037b8

@xmakro xmakro force-pushed the perf/unicode-ascii-fast-path branch from a4748ae to 97037b8 Compare June 19, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants