Skip to content

Commit 8354b73

Browse files
committed
Convert char generators to codepoint generators
We were essentially generating codepoints anyway, so this eliminates the back and forth conversions, speeding things up and making the intention clear. The downside is that there isn't a nice way to generate multicodepoint characters, but the previous implementation didn't support this cleanly either. This change better aligns the types with the actual intention.
1 parent 51a16bb commit 8354b73

7 files changed

+331
-290
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ _*
77

88
/*.trace
99
/*.fprof
10+
11+
/bench2
12+
/codebook.toml

justfile

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ bench_full:
3131

3232
gleam run -m full_benchmark -- bench_out
3333

34+
bench_x:
35+
#!/usr/bin/env bash
36+
set -euxo pipefail
37+
38+
cd bench2
39+
40+
gleam run -- bench_x_out
41+
3442
qv_dev:
3543
#!/usr/bin/env bash
3644
set -euxo pipefail

0 commit comments

Comments
 (0)