Skip to content

Commit 696a414

Browse files
committed
Fix opening punctuation line breaks
1 parent 013b54e commit 696a414

8 files changed

Lines changed: 245 additions & 229 deletions

File tree

accuracy/chrome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76825,5 +76825,5 @@
7682576825
"diff": 0
7682676826
}
7682776827
],
76828-
"requestId": "1778208527462-r2cfza"
76828+
"requestId": "1778209507574-dkf1fd"
7682976829
}

accuracy/firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76825,5 +76825,5 @@
7682576825
"diff": 0
7682676826
}
7682776827
],
76828-
"requestId": "1778208539498-29l8vf"
76828+
"requestId": "1778209507579-e475p1"
7682976829
}

accuracy/safari.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76825,5 +76825,5 @@
7682576825
"diff": 0
7682676826
}
7682776827
],
76828-
"requestId": "1778208532795-6bicwf"
76828+
"requestId": "1778209507574-eshccb"
7682976829
}

benchmarks/chrome.json

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"results": [
44
{
55
"label": "Our library: prepare()",
6-
"ms": 19.34999990463257,
6+
"ms": 17.550000071525574,
77
"desc": "One cold 500-text measurement batch"
88
},
99
{
1010
"label": "Our library: layout()",
11-
"ms": 0.1525,
11+
"ms": 0.14524999976158143,
1212
"desc": "Normalized hot-path throughput per 500-text batch"
1313
},
1414
{
1515
"label": "DOM batch",
16-
"ms": 3.850000023841858,
16+
"ms": 3.8000000715255737,
1717
"desc": "Single 400→300px batch resize: write all, then read all"
1818
},
1919
{
2020
"label": "DOM interleaved",
21-
"ms": 45.85000002384186,
21+
"ms": 43,
2222
"desc": "Single 400→300px batch resize: write + read per div"
2323
}
2424
],
@@ -35,12 +35,12 @@
3535
},
3636
{
3737
"label": "Our library: walkLineRanges()",
38-
"ms": 0.026249998807907106,
38+
"ms": 0.023750001192092897,
3939
"desc": "60-text shared-corpus batch across widths 180/220/260px; line ranges only, no line text strings"
4040
},
4141
{
4242
"label": "Our library: layoutNextLine()",
43-
"ms": 0.04625000059604645,
43+
"ms": 0.0449999988079071,
4444
"desc": "60-text shared-corpus batch across widths 180/220/260px; streaming line-by-line layout"
4545
}
4646
],
@@ -52,61 +52,61 @@
5252
},
5353
{
5454
"label": "Our library: walkRichInlineLineRanges()",
55-
"ms": 0.020000001788139342,
55+
"ms": 0.019999998807907104,
5656
"desc": "36 rich-text inline flow shared-corpus texts across widths 180/220/260px; per-line ranges with fragment ownership, no text strings"
5757
},
5858
{
5959
"label": "Our library: materializeRichInlineLineRange()",
60-
"ms": 0.045000004768371585,
60+
"ms": 0.0449999988079071,
6161
"desc": "36 rich-text inline flow shared-corpus texts across widths 180/220/260px; range walker plus per-line materialization"
6262
},
6363
{
6464
"label": "Our library: layoutNextRichInlineLineRange() + materializeRichInlineLineRange()",
65-
"ms": 0.04375,
65+
"ms": 0.04250000119209289,
6666
"desc": "36 rich-text inline flow shared-corpus texts across widths 180/220/260px; streaming range walk plus per-line materialization"
6767
}
6868
],
6969
"richPreWrapResults": [
7070
{
7171
"label": "Our library: measureLineStats()",
72-
"ms": 0.3050000011920929,
72+
"ms": 0.2924999952316284,
7373
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; stats only"
7474
},
7575
{
7676
"label": "Our library: layoutWithLines()",
77-
"ms": 0.4449999988079071,
77+
"ms": 0.4199999928474426,
7878
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; materializes text lines"
7979
},
8080
{
8181
"label": "Our library: walkLineRanges()",
82-
"ms": 0.24499999284744262,
82+
"ms": 0.23250000476837157,
8383
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; line ranges only, no line text strings"
8484
},
8585
{
8686
"label": "Our library: layoutNextLine()",
87-
"ms": 1.2249999940395355,
87+
"ms": 1.1525000035762787,
8888
"desc": "12 generated pre-wrap texts with 320 hard-break chunks across widths 220/260/320px; streaming line-by-line layout"
8989
}
9090
],
9191
"richLongResults": [
9292
{
9393
"label": "Our library: measureLineStats()",
94-
"ms": 1.713749998807907,
94+
"ms": 1.6362500011920929,
9595
"desc": "8 Arabic long-form texts across widths 240/300/360px; stats only"
9696
},
9797
{
9898
"label": "Our library: layoutWithLines()",
99-
"ms": 5.748749998211861,
99+
"ms": 5.4537499994039536,
100100
"desc": "8 Arabic long-form texts across widths 240/300/360px; materializes text lines"
101101
},
102102
{
103103
"label": "Our library: walkLineRanges()",
104-
"ms": 2.2762500017881395,
104+
"ms": 2.1624999970197676,
105105
"desc": "8 Arabic long-form texts across widths 240/300/360px; line ranges only, no line text strings"
106106
},
107107
{
108108
"label": "Our library: layoutNextLine()",
109-
"ms": 5.476249998807907,
109+
"ms": 5.4537499994039536,
110110
"desc": "8 Arabic long-form texts across widths 240/300/360px; streaming line-by-line layout"
111111
}
112112
],
@@ -121,9 +121,9 @@
121121
"breakableSegments": 0,
122122
"width": 300,
123123
"lineCount": 193,
124-
"analysisMs": 2.4000000953674316,
125-
"measureMs": 4.299999713897705,
126-
"prepareMs": 7.900000095367432,
124+
"analysisMs": 2.299999952316284,
125+
"measureMs": 4.400000333786011,
126+
"prepareMs": 6.6000001430511475,
127127
"layoutMs": 0.02649999976158142
128128
},
129129
{
@@ -136,10 +136,10 @@
136136
"breakableSegments": 1,
137137
"width": 300,
138138
"lineCount": 380,
139-
"analysisMs": 4.5,
140-
"measureMs": 8.700000047683716,
141-
"prepareMs": 13.400000095367432,
142-
"layoutMs": 0.049499999284744266
139+
"analysisMs": 4.700000047683716,
140+
"measureMs": 7.699999809265137,
141+
"prepareMs": 12.399999856948853,
142+
"layoutMs": 0.049000000953674315
143143
},
144144
{
145145
"id": "ko-unsu-joh-eun-nal",
@@ -151,10 +151,10 @@
151151
"breakableSegments": 0,
152152
"width": 300,
153153
"lineCount": 428,
154-
"analysisMs": 3.3999998569488525,
155-
"measureMs": 8.5,
154+
"analysisMs": 3.200000047683716,
155+
"measureMs": 8.300000190734863,
156156
"prepareMs": 12,
157-
"layoutMs": 0.07950000047683715
157+
"layoutMs": 0.07700000047683715
158158
},
159159
{
160160
"id": "ko-sonagi",
@@ -166,10 +166,10 @@
166166
"breakableSegments": 2,
167167
"width": 300,
168168
"lineCount": 332,
169-
"analysisMs": 2.5999999046325684,
170-
"measureMs": 7.299999713897705,
171-
"prepareMs": 9.700000047683716,
172-
"layoutMs": 0.0625
169+
"analysisMs": 2.4000000953674316,
170+
"measureMs": 6.500000238418579,
171+
"prepareMs": 8.900000095367432,
172+
"layoutMs": 0.05849999904632568
173173
},
174174
{
175175
"id": "zh-zhufu",
@@ -181,10 +181,10 @@
181181
"breakableSegments": 4,
182182
"width": 300,
183183
"lineCount": 626,
184-
"analysisMs": 7.299999952316284,
185-
"measureMs": 14.700000047683716,
186-
"prepareMs": 21.700000047683716,
187-
"layoutMs": 0.08149999976158143
184+
"analysisMs": 6.799999952316284,
185+
"measureMs": 13.800000190734863,
186+
"prepareMs": 20.90000009536743,
187+
"layoutMs": 0.08049999952316284
188188
},
189189
{
190190
"id": "zh-guxiang",
@@ -196,10 +196,10 @@
196196
"breakableSegments": 14,
197197
"width": 300,
198198
"lineCount": 375,
199-
"analysisMs": 4.5,
200-
"measureMs": 8.800000190734863,
201-
"prepareMs": 13.699999809265137,
202-
"layoutMs": 0.04850000023841858
199+
"analysisMs": 4.3999998569488525,
200+
"measureMs": 8,
201+
"prepareMs": 12.5,
202+
"layoutMs": 0.04799999952316284
203203
},
204204
{
205205
"id": "th-nithan-vetal-story-1",
@@ -211,10 +211,10 @@
211211
"breakableSegments": 8087,
212212
"width": 300,
213213
"lineCount": 1024,
214-
"analysisMs": 10.399999856948853,
215-
"measureMs": 7.5,
216-
"prepareMs": 18.399999856948853,
217-
"layoutMs": 0.09049999952316284
214+
"analysisMs": 9.5,
215+
"measureMs": 7.1000001430511475,
216+
"prepareMs": 17,
217+
"layoutMs": 0.08600000023841858
218218
},
219219
{
220220
"id": "my-cunning-heron-teacher",
@@ -227,7 +227,7 @@
227227
"width": 300,
228228
"lineCount": 81,
229229
"analysisMs": 0.7999999523162842,
230-
"measureMs": 0.8999996185302734,
230+
"measureMs": 0.8000001907348633,
231231
"prepareMs": 1.6000001430511475,
232232
"layoutMs": 0.0070000004768371584
233233
},
@@ -242,9 +242,9 @@
242242
"width": 300,
243243
"lineCount": 54,
244244
"analysisMs": 0.5,
245-
"measureMs": 0.7000000476837158,
246-
"prepareMs": 1.1000001430511475,
247-
"layoutMs": 0.004500000476837158
245+
"measureMs": 0.5999999046325684,
246+
"prepareMs": 1,
247+
"layoutMs": 0.004000000953674317
248248
},
249249
{
250250
"id": "ur-chughd",
@@ -256,10 +256,10 @@
256256
"breakableSegments": 2922,
257257
"width": 300,
258258
"lineCount": 351,
259-
"analysisMs": 3.5,
260-
"measureMs": 4,
261-
"prepareMs": 7.3999998569488525,
262-
"layoutMs": 0.04350000023841858
259+
"analysisMs": 3.4000000953674316,
260+
"measureMs": 3.700000047683716,
261+
"prepareMs": 7.200000047683716,
262+
"layoutMs": 0.0425
263263
},
264264
{
265265
"id": "km-prachum-reuang-preng-khmer-volume-7-stories-1-10",
@@ -271,10 +271,10 @@
271271
"breakableSegments": 4010,
272272
"width": 300,
273273
"lineCount": 591,
274-
"analysisMs": 8.399999856948853,
275-
"measureMs": 4.800000190734863,
276-
"prepareMs": 14,
277-
"layoutMs": 0.08850000023841859
274+
"analysisMs": 8,
275+
"measureMs": 4.199999809265137,
276+
"prepareMs": 12.400000095367432,
277+
"layoutMs": 0.08350000023841858
278278
},
279279
{
280280
"id": "hi-eidgah",
@@ -286,10 +286,10 @@
286286
"breakableSegments": 4089,
287287
"width": 300,
288288
"lineCount": 653,
289-
"analysisMs": 6,
290-
"measureMs": 8.599999904632568,
291-
"prepareMs": 14.5,
292-
"layoutMs": 0.07150000095367431
289+
"analysisMs": 5.700000047683716,
290+
"measureMs": 6.799999952316284,
291+
"prepareMs": 12.5,
292+
"layoutMs": 0.0675
293293
},
294294
{
295295
"id": "synthetic-long-breakable-runs",
@@ -301,10 +301,10 @@
301301
"breakableSegments": 1540,
302302
"width": 300,
303303
"lineCount": 2860,
304-
"analysisMs": 8.900000095367432,
305-
"measureMs": 12.300000190734863,
306-
"prepareMs": 20.899999856948853,
307-
"layoutMs": 0.31600000023841857
304+
"analysisMs": 8.599999904632568,
305+
"measureMs": 12.700000047683716,
306+
"prepareMs": 21.299999952316284,
307+
"layoutMs": 0.30649999976158143
308308
},
309309
{
310310
"id": "ar-risalat-al-ghufran-part-1",
@@ -316,10 +316,10 @@
316316
"breakableSegments": 18745,
317317
"width": 300,
318318
"lineCount": 2643,
319-
"analysisMs": 27.800000190734863,
320-
"measureMs": 45.80000019073486,
321-
"prepareMs": 73.5,
322-
"layoutMs": 0.2789999997615814
319+
"analysisMs": 27.5,
320+
"measureMs": 44.299999952316284,
321+
"prepareMs": 71.20000004768372,
322+
"layoutMs": 0.2684999990463257
323323
}
324324
]
325325
}

0 commit comments

Comments
 (0)