Commit Graph
17262 Commits
Author SHA1 Message Date
Behdad Esfahbod dbdeb2649d [vector] Keep allocated size when in error 2023-06-08 12:08:29 -06:00
Behdad Esfahbod 9df07c3c30 [gsubgpos] Prevent a leak in closure
If the push wasn't successful we were constructing an
hb_set_t on the Crap data...  At least that's my reading
of the code.
2023-06-08 11:46:06 -06:00
Behdad Esfahbod 0f0b3bee21 [map] Fix use-after-move issue 2023-06-08 11:13:33 -06:00
Behdad Esfahbod a67a7867d2 [cff] Tweak CFFIndex accessors again
Faster; avoiding multiply.
2023-06-07 20:24:02 -06:00
Behdad Esfahbod 04c5e46ac6 [subset/cff] Fix comment 2023-06-07 19:18:04 -06:00
Behdad Esfahbod 8832da8309 [subset/cff] Comment 2023-06-07 18:58:52 -06:00
Behdad Esfahbod 092373f351 [subset/cff] Comment 2023-06-07 17:49:13 -06:00
Behdad Esfahbod e0b60bd08d [subset/cff1] Speed up remap_sids 2023-06-07 17:25:47 -06:00
Behdad Esfahbod 67b1624727 [set] Simplify a few set iterations as range loop 2023-06-07 16:25:11 -06:00
Behdad Esfahbod 988e4f068e [iter] Comment 2023-06-07 15:57:47 -06:00
Behdad Esfahbod 0364c69e6d [iter] Add has_fast_len
Set iterators are not random_access, but have fast len().
2023-06-07 15:52:18 -06:00
Behdad Esfahbod 2d1589221d [subset/hdmx] Remove an unintended vector copy 2023-06-07 15:47:08 -06:00
Behdad Esfahbod 81b2a56d54 [set] Micro-optimize iteration 2023-06-07 15:04:20 -06:00
Behdad Esfahbod ad620af6f6 Revert "[iter] Another try at writing some for loops as range loops"
This reverts commit 69c6928289.

This had code size increase, and slows down non-random-access
iterators since it accesses __end__ which is O(n).
2023-06-07 15:00:35 -06:00
Pedro Kaj Kjellerup Nacht 59f2d2f6c2 Set dependabot to update requirements.txt
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-07 20:26:00 +00:00
Pedro Kaj Kjellerup Nacht 7c08bb85d5 Adopt requirements.txt file in workflows
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-07 20:26:00 +00:00
Pedro Kaj Kjellerup Nacht a8e2f1b6ea Add .ci/requirements files
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-07 20:26:00 +00:00
Behdad Esfahbod 80d6e996d7 [subset/cff1] Fix wrong comma location! 2023-06-07 14:21:40 -06:00
Behdad Esfahbod 69c6928289 [iter] Another try at writing some for loops as range loops 2023-06-07 14:11:02 -06:00
Behdad Esfahbod 138461beb4 [susbet/cff] Minor remove one indirection 2023-06-07 14:07:39 -06:00
Behdad Esfahbod 41369b6617 Revert "[subset/cff1] Optimize writing of consecutive names"
This reverts commit 3b25a63040.

Not worth it. Shows 0.5% speedup only on SourceSansPro/retaingids/10

Doesn't have code size increase though.
2023-06-07 14:04:42 -06:00
Behdad Esfahbod 3b25a63040 [subset/cff1] Optimize writing of consecutive names 2023-06-07 14:04:25 -06:00
Behdad Esfahbod 78082357c8 Revert "[iter] Rewrite some loops as range loops"
This reverts commit 7a5242a30f.

This times out test-set. Obviously broke something (in hb_all
I think). Not bothering to figure out right now.
2023-06-07 12:43:05 -06:00
Behdad Esfahbod 7a5242a30f [iter] Rewrite some loops as range loops 2023-06-07 12:36:15 -06:00
Behdad Esfahbod cc9651d55d [map] Micro-optimize 2023-06-07 12:20:48 -06:00
Behdad Esfahbod 79113ec3b1 [subset/cff1] Micro-optimize String writing 2023-06-07 12:14:43 -06:00
Behdad Esfahbod 5fe96213aa [subset/cff] Micro-optimize CFFIndex writing 2023-06-07 12:05:57 -06:00
Behdad Esfahbod 70b13ef00b Merge pull request #4267 from googlefonts/decompile_tuple_varstore
[instancer] decompile tuple varstore
2023-06-07 11:46:37 -06:00
Behdad Esfahbod b80b6a4f5f [cff] Remove unused types 2023-06-06 18:11:55 -06:00
Behdad Esfahbod 26ac1d4b48 [cff] Remove unused method 2023-06-06 18:08:59 -06:00
Behdad Esfahbod c6ce1f81ec [cff] Micro-optimize CFFIndex::operator[] 2023-06-06 17:17:29 -06:00
Behdad Esfahbod a55d0b8866 [subset/cff] Inline type only used once 2023-06-06 17:13:09 -06:00
Behdad Esfahbod 2960d13f1b [subset/cff1] Micro-optimize string writing 2023-06-06 16:24:28 -06:00
Behdad Esfahbod 35e152b9f4 [subset/cff] Micro-optimize CFFIndex for empty strings 2023-06-06 16:21:14 -06:00
Behdad Esfahbod acae5ed25c [subset/cff1] Speed up sid mapping
Don't need a full inc_bimap.
2023-06-06 16:18:44 -06:00
Behdad Esfahbod 9e80f6b1b6 [subset/cff1] Speed up plan_subset_charset
25% speedup in --benchmark_filter=subset_glyphs/SourceSansPro'.*retaingids/10
2023-06-06 15:38:14 -06:00
Behdad Esfahbod fd13aa9eff [subset/cff1] Optimize CFF::CFF1StringIndex::serialize 2023-06-06 15:33:51 -06:00
Behdad Esfahbod ada1e9a924 [graph/serialize] Handle empty blob
Fixes https://oss-fuzz.com/testcase-detail/4877513265119232
2023-06-06 14:46:47 -06:00
Behdad Esfahbod a92b288e65 [serializer] Handle snapshotting when current is nullptr
Happens with memory failure / fuzzing.

Fixes https://oss-fuzz.com/testcase-detail/6292420615340032
2023-06-06 14:32:25 -06:00
Qunxin Liu 01f9b79777 address review comments 2023-06-05 20:56:58 -07:00
Behdad Esfahbod f01ebe97b2 [vector] Minor write more idiomatic 2023-06-05 21:38:37 -06:00
Behdad Esfahbod cd8f7c0201 [subset/cff] Optimize fdselect 2023-06-05 17:17:44 -06:00
Qunxin Liu 796a0df93e try to fix bot 2023-06-05 15:40:46 -07:00
Behdad Esfahbod dcecb4d16b [subset/ValueFormat] Micro-optimize 2023-06-05 16:03:36 -06:00
Behdad Esfahbod 5676adefbc [subset/cff1] Remove an unneeded copy method
Same as serializer embed().
2023-06-05 15:56:19 -06:00
Behdad Esfahbod 7d9698123c [subset/cff1] Micro-optimize
Is ugly but shows speedup.
2023-06-05 15:44:50 -06:00
Behdad Esfahbod 469e82a227 [subset/PairPos] Micro-optimize 2023-06-05 15:23:22 -06:00
Behdad Esfahbod 6593d2aaba [subset/PairPos] Speed up 2023-06-05 15:11:43 -06:00
Qunxin Liu ed6bee2004 [instancer] add a test for decompile cvar tuple variations data 2023-06-05 14:03:22 -07:00
Qunxin Liu bd9cdecd59 [instancer] add decompile_tuple_variations() for cvar table 2023-06-05 13:52:05 -07:00