Commit Graph
16377 Commits
Author SHA1 Message Date
Behdad Esfahbod 9cdc0b6419 [subset/cff] Speed up subset_cff_fdselect 2023-06-04 11:18:56 -06:00
Behdad Esfahbod 858a022358 Revert "[cff] Optimize writing out Index offsets"
This reverts commit 78ba23c587.

Not enough gain, and bloats code size.
2023-06-04 10:55:41 -06:00
Behdad Esfahbod 78ba23c587 [cff] Optimize writing out Index offsets 2023-06-04 10:52:19 -06:00
Behdad Esfahbod 89ce804833 [serialize] Remove attribute malloc
This broke tests. It wasn't technically correct.
2023-06-04 10:20:39 -06:00
Behdad Esfahbod 3f2a1b644a Fix build 2023-06-04 10:13:53 -06:00
Behdad Esfahbod e1715056fc [serialize] One more attribute 2023-06-04 10:09:02 -06:00
Behdad Esfahbod 15048e50ec [serialize] Add more function attributes 2023-06-04 10:07:04 -06:00
Behdad Esfahbod aad12ca649 [serialize] Add a few function attributes 2023-06-04 09:57:51 -06:00
Behdad Esfahbod 4e076da9d0 Another try at fixing build 2023-06-04 09:49:08 -06:00
Behdad Esfahbod b08866afda Fix build 2023-06-04 09:44:37 -06:00
Behdad Esfahbod 82741304d3 [subset] start_embed never returns nullptr
Remove checks.
2023-06-04 09:41:41 -06:00
Behdad Esfahbod c2eaedd2cd [fuzzing] Add a test font
From https://oss-fuzz.com/testcase-detail/5855710991482880
2023-06-04 09:25:17 -06:00
Behdad Esfahbod af3fdf1f9e [subset/glyf] Simplify error handling 2023-06-04 09:24:37 -06:00
Behdad Esfahbod 3dd1de46d6 [subset/glyf] Fix a few return_trace's 2023-06-04 09:15:14 -06:00
Behdad Esfahbod 73f2f935a0 [subset/glyf] Fix another leak 2023-06-04 09:12:18 -06:00
Behdad Esfahbod 3d08a2f10c [subset/glyf] Fix leak 2023-06-03 23:38:38 -06:00
Behdad Esfahbod fc33200d79 [subset/glyf] Avoid a vector copy
Oops!
2023-06-03 23:29:39 -06:00
Behdad Esfahbod 3bfcbd6149 [subset/glyf] Minor use range lopp 2023-06-03 23:17:56 -06:00
Behdad Esfahbod 917c8d0ac5 [subset/glyf] Minor change of value 2023-06-03 23:15:56 -06:00
Behdad Esfahbod 2b8c43135a [vector] Oops! 2023-06-03 23:01:27 -06:00
Behdad Esfahbod 054f966a57 [subset/cff1] Don't allocate memory for retaingid holes
40% speedup in BM_subset/subset_glyphs/SourceHanSans-Regular_subset.otf/retaingids/10
benchmark.
2023-06-03 22:53:05 -06:00
Behdad Esfahbod b5792f117a [subset] Reuse num_glyphs in various places 2023-06-03 22:24:06 -06:00
Behdad Esfahbod 7e4311a868 [cff] Speed up for retaingids 2023-06-03 22:11:47 -06:00
Behdad Esfahbod ca237e6ba8 [subset/cff] Reuse num_glyphs 2023-06-03 22:08:34 -06:00
Behdad Esfahbod 1590754ba8 [subset/cff] Speed up for retaingids 2023-06-03 22:04:52 -06:00
Behdad Esfahbod dff3a936d2 [subset/cff1] Speed up for retaingids 2023-06-03 22:00:28 -06:00
Behdad Esfahbod fa8d15d520 [subset/cff1] Reuse num_glyphs 2023-06-03 21:58:21 -06:00
Behdad Esfahbod 937ead2f02 [subset/hvar] Speed up for retaingids 2023-06-03 21:38:56 -06:00
Behdad Esfahbod acab716b1c [subset/hvar] Speed up for retaingids 2023-06-03 21:15:36 -06:00
Behdad Esfahbod bc6dbf436a [subset/gvar] Micro-optimize 2023-06-03 21:09:33 -06:00
Behdad Esfahbod 841347533a [subset/gvar] Speed up for retaingids 2023-06-03 21:08:30 -06:00
Behdad Esfahbod 87cf09bd2c [subset/loca] Fix up for retaingid null glyphs at the end
We currently don't have those, but in case we add.
2023-06-03 21:00:56 -06:00
Behdad Esfahbod 2fb670a528 [subset/gvar] Speed up for retaingids 2023-06-03 20:56:04 -06:00
Behdad Esfahbod 5b1679343a [subset/hdmx] Micro-optimize 2023-06-03 20:45:52 -06:00
Behdad Esfahbod 9b733532df [subset/hdmx] Fix build 2023-06-03 20:44:08 -06:00
Behdad Esfahbod 4d4792ce3d [subset/hdmx] Speed up more for retaingids 2023-06-03 20:34:51 -06:00
Behdad Esfahbod a3f7ed709b [subset/hdmx] Don't clear memory unnecessarily 2023-06-03 20:25:14 -06:00
Behdad Esfahbod e263c3ccbb [subset/hdmx] Speed up 2023-06-03 20:20:57 -06:00
Behdad Esfahbod 0e16be9b2c [subset-plan] Reuse glyph_for_gid result 2023-06-03 19:45:44 -06:00
Behdad Esfahbod 590fb3529a [subset] Reduce memory pressure 2023-06-03 19:21:22 -06:00
Behdad Esfahbod c03c300016 [subset] Tweak memory allocation
Reduces chances of rework, specially for glyf table if padding
is needed...
2023-06-03 19:05:10 -06:00
Behdad Esfahbod 38fa032330 Revert "[subset/loca] Build in the serializer memory"
This reverts commit 546b518186.
2023-06-03 18:51:09 -06:00
Behdad Esfahbod 546b518186 [subset/loca] Build in the serializer memory
Because it's hot. Doesn't seem to speed up though. Slight
slowdown. Going to revert.
2023-06-03 18:50:35 -06:00
Behdad Esfahbod 3cb2b49e61 [subset/loca] Shuffle code around 2023-06-03 18:45:20 -06:00
Behdad Esfahbod f014112d16 Revert "[subset] Allow adding table directly from subset()"
This reverts commit 25a6514887.
2023-06-03 18:27:24 -06:00
Behdad Esfahbod 25a6514887 [subset] Allow adding table directly from subset()
And do it for hmtx. Going to revert since it slows things down.
Apparently the serializer buffer is in caches and hot, so faster
to write to and copy even.
2023-06-03 18:26:36 -06:00
Behdad Esfahbod b0d0babb2e [subset/loca] Rewrite loop faster 2023-06-03 17:14:55 -06:00
Behdad Esfahbod 8dab444102 [subset/hmtx] Micro-optimize last commit
hb_zip has its own overhead...
2023-06-03 17:06:30 -06:00
Behdad Esfahbod e981dc24c8 [subset/hmtx] Rewrite loop faster for retaingid 2023-06-03 17:04:00 -06:00
Behdad Esfahbod 4a9da02619 [subset/hmtx] Micro-optimize 2023-06-03 16:46:29 -06:00