Skip to content

Commit 93f05a3

Browse files
committed
Optimize JsStr::code_points() for Latin1 strings
- Add CodePointIter with specialized Latin1 path - Latin1 strings avoid UTF-16 conversion overhead - UTF-16 behavior remains unchanged - Add tests for both encoding paths - Include Latin1-compatible characters in tests
1 parent 5cbbb72 commit 93f05a3

File tree

8 files changed

+140
-63
lines changed

8 files changed

+140
-63
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
uses: actions/checkout@v6
163163

164164
- name: Check for typos
165-
uses: crate-ci/typos@v1.39.2
165+
uses: crate-ci/typos@v1.40.0
166166

167167
clippy:
168168
name: Lint

Cargo.lock

Lines changed: 65 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ small_btree = { version = "~0.1.0", path = "utils/small_btree" }
5151
# Shared deps
5252
arbitrary = "1"
5353
bitflags = "2.10.0"
54-
clap = "4.5.51"
54+
clap = "4.5.53"
5555
colored = "3.0.0"
5656
cow-utils = "0.1.3"
5757
fast-float2 = "0.2.3"
58-
hashbrown = "0.16.0"
59-
http = { version = "1.3.1" }
60-
indexmap = { version = "2.12.0", default-features = false }
58+
hashbrown = "0.16.1"
59+
http = { version = "1.4.0" }
60+
indexmap = { version = "2.12.1", default-features = false }
6161
indoc = "2.0.7"
6262
itoa = "1.0.15"
6363
jemallocator = "0.5.4"
@@ -97,13 +97,13 @@ bus = "2.4.1"
9797
wasm-bindgen = { version = "0.2.97", default-features = false }
9898
getrandom = { version = "0.3.4", default-features = false }
9999
console_error_panic_hook = "0.1.7"
100-
wasm-bindgen-test = "0.3.54"
100+
wasm-bindgen-test = "0.3.56"
101101
smol = "2.0.2"
102102
isahc = "1.7.2"
103103
rustyline = { version = "17.0.2", default-features = false }
104104
dhat = "0.3.3"
105105
quote = "1.0.42"
106-
syn = { version = "2.0.110", default-features = false }
106+
syn = { version = "2.0.111", default-features = false }
107107
proc-macro2 = "1.0"
108108
synstructure = "0.13"
109109
measureme = "12.0.3"

0 commit comments

Comments
 (0)