Behdad Esfahbod
eb6de66469
[instancer/tuplevars] Reduce work
2025-09-14 13:13:22 -06:00
Behdad Esfahbod
90ea408e47
[map] Speed up copying of trivially-assignable types
2025-09-13 23:20:58 -06:00
Behdad Esfahbod
fd282dcfe7
[map] Speed up operator= for trivial item types
2025-09-13 17:56:34 -06:00
Behdad Esfahbod
1f936e2366
[instancer] Try to move instead of copy some tuples
2025-09-13 17:04:39 -06:00
Behdad Esfahbod
2319d763aa
[TupleValues] Micro-optimize encoding
...
Also, a check for 32bit values in the word-encoding function
was missing. Ouch.
2025-09-13 16:21:34 -06:00
Behdad Esfahbod
f2c4ab4545
[instancer/varstore] Micro-optimize
2025-09-13 16:14:55 -06:00
Behdad Esfahbod
b97369bbe8
Merge pull request #5549 from harfbuzz/instancer-varstore-optimize-compromise
...
[instancer/varstore] Only optimize instanced varstore incrementally
2025-09-13 14:10:20 -06:00
Behdad Esfahbod
cf6c9d8a8f
[instancer/varstore] Put back sort again
...
In testing with GoogleSansFlex, this produces slightly smaller
result.
2025-09-13 13:51:50 -06:00
Behdad Esfahbod
c7e46ab2bf
[instancer/varstore] Avoid copies in loops
2025-09-13 12:54:18 -06:00
Behdad Esfahbod
7a430de326
Add -Wpessimizing-move warning
...
Part of https://github.com/harfbuzz/harfbuzz/issues/5550
2025-09-13 00:08:10 -06:00
Behdad Esfahbod
a4a5089201
[instancer/varstore] Speed up encoding merging
...
Don't recalculate chars from all row data.
2025-09-12 23:41:40 -06:00
Behdad Esfahbod
f0a1289a6a
[instancer/varstore] Massage optimizer a bit
2025-09-12 19:25:57 -06:00
Behdad Esfahbod
a878dca00f
[instancer/varstore] Remove sorting from the optimizer
...
Just work with incoming order.
2025-09-12 19:19:07 -06:00
Behdad Esfahbod
e16be51549
[instancer/varstore] Only optimize instanced varstore incrementally
...
See comments. This basically wipes of the varstore optimization
costs out of the profiles, which saves eg. 25% total time in
GoogleSansFlex instantiation, with practically no file size
downside.
2025-09-12 18:01:09 -06:00
Behdad Esfahbod
a4087e7f7a
[instancer/varlib] Minor non-functional change
2025-09-12 17:02:42 -06:00
Behdad Esfahbod
d8c1bce273
[instancer/varstore] Mark a function HOT
2025-09-12 14:39:54 -06:00
Garret Rieger
aa58b43de4
[subset] Introduce HB_SUBSET_FLAGS_RETAIN_NUM_GLYPHS. ( #5547 )
...
Used in conjunction with retain gids, when set the num glyphs from the input font will be preserved. Empty glyphs will be inserted as necessary to maintain the num glyphs value. Put under experimental for now.
2025-09-12 14:24:41 -06:00
Behdad Esfahbod
bf8929fbfb
11.5.0
2025-09-12 13:32:38 -06:00
Behdad Esfahbod
74c318610d
[rust] Update to HarfRust 0.3.0 ( #5548 )
2025-09-12 13:31:29 -06:00
Behdad Esfahbod
3965e9a64b
[instancer/varstore] Change sort key ( #5540 )
...
See https://github.com/harfbuzz/harfbuzz/pull/5540
2025-09-12 13:12:05 -06:00
Behdad Esfahbod
c9480db91b
[instancer/varstore] Add a heuristic to speed up optimization
2025-09-12 12:51:26 -06:00
David Corbett
dce73766f5
[Unicode 17] Update the script direction list
2025-09-12 12:00:48 -06:00
Behdad Esfahbod
0f1dab0f93
[instancer/varstore] More gain_from_merging optimization ( #5543 )
...
* [instancer/varstore] More gain_from_merging optimization
* [tests] Re-enable a test that was disabled until an issue fixed
See comment.
2025-09-12 11:43:21 -06:00
Behdad Esfahbod
e4957b0cd2
[varLib/instancer] Simplify gain encoding
2025-09-12 10:57:49 -06:00
Behdad Esfahbod
20d7ef5f63
[instancer/varstore] Change gain encoding
...
gain can be high in theory.
2025-09-12 10:45:08 -06:00
Behdad Esfahbod
ca9a8aba5e
Revert "[instancer/varstore] Micro-optimize"
...
This reverts commit 7484eb5807 .
2025-09-12 03:50:46 -06:00
Behdad Esfahbod
f12be45c3d
[instancer/varstore] Optimize gain comparisons
2025-09-12 03:42:49 -06:00
Behdad Esfahbod
7484eb5807
[instancer/varstore] Micro-optimize
2025-09-12 03:16:59 -06:00
Behdad Esfahbod
92ec75f8d6
[instancer/varstore] Micro-optimize
2025-09-12 03:13:25 -06:00
Behdad Esfahbod
14e7d5b2c8
[instancer/varstore] Speed up gain_from_merging
...
10% speedup instancing GoogleSansFlex.
2025-09-12 03:04:59 -06:00
Behdad Esfahbod
006ec1600a
[instancer/varstore] Minor refactor in anticipation of next change
2025-09-12 02:52:29 -06:00
Behdad Esfahbod
aba798ddab
[instancer/varstore] Use heapify() instead of inserts()
2025-09-12 00:52:40 -06:00
Behdad Esfahbod
12c4623757
Revert "[instancer/varstore] Change chars_t storage scheme"
...
This reverts commit aaeea5729b .
2025-09-12 00:05:37 -06:00
Behdad Esfahbod
aaeea5729b
[instancer/varstore] Change chars_t storage scheme
...
Slows down. Gonna revert.
Apparently builtin popcount is not fast unless built for archs that
support it.
2025-09-12 00:05:01 -06:00
Behdad Esfahbod
3dc5e3d689
[instancer/varstore] Consolidate chars_t logic
2025-09-11 23:51:56 -06:00
Behdad Esfahbod
fe6c9a0f73
[instancer/varstore] Fix a logic bug
...
combined_chars was moved already.
Also, see comment.
2025-09-11 23:26:34 -06:00
Behdad Esfahbod
9d9711698b
[instancer/varstore] Add a chars_t type
2025-09-11 23:12:14 -06:00
Behdad Esfahbod
1a6c6d7865
[instancer] Micro-optimize a couple of hot comparisons
2025-09-11 22:01:54 -06:00
Behdad Esfahbod
c938e8ce88
[instancer] Micro-optimize by using bit-set directly
2025-09-11 21:57:14 -06:00
Behdad Esfahbod
266e1c2481
[instancer] Short-circuit some work in gain_from_merging
2025-09-11 20:12:39 -06:00
Behdad Esfahbod
a34f8b3141
[instancer] Use bitset instead of vector for VarStore optimizer columns
...
~30% faster on GoogleSansFlex.
2025-09-11 20:03:57 -06:00
Behdad Esfahbod
2e86070ec6
[instancer] Don't clear a couple of resize allocations
...
Not needed.
2025-09-11 18:17:06 -06:00
Behdad Esfahbod
01fd17d68a
[instancer] Reduce mallocs in create_from_tuple_var_data
2025-09-11 17:05:03 -06:00
Behdad Esfahbod
23e40cd70b
[instancer] Reduce mallocs in gain_from_merging
2025-09-11 16:53:44 -06:00
Behdad Esfahbod
3225bd7324
[instancer] Minor default construction simplify
2025-09-11 16:44:24 -06:00
Behdad Esfahbod
3df6e5102b
[instancer] Reduce mallocs in merge_tuple_variations
2025-09-11 16:33:10 -06:00
Behdad Esfahbod
6d82b40a49
[instancer] Remove unnecessary vector fini
2025-09-11 16:09:13 -06:00
Behdad Esfahbod
87c36992c0
[instancer] Reduce mallocs in calc_inferred_deltas
2025-09-11 15:42:59 -06:00
Behdad Esfahbod
740cbf1c81
[vector] Add malloc debug facility
2025-09-11 15:39:15 -06:00
Behdad Esfahbod
67bddf153f
[instancer] Reduce mallocs in change_tuple_var_axis_limit
2025-09-11 15:16:30 -06:00