Behdad Esfahbod
867640af31
Revert "[set] Add test_and_add / test_and_del"
...
This reverts commit de1237fbf2 .
This seems to be a net loss.
2023-07-14 13:09:16 -06:00
Behdad Esfahbod
10b776b0c3
[graph] Micro-optimize
2023-07-14 13:08:19 -06:00
Behdad Esfahbod
de1237fbf2
[set] Add test_and_add / test_and_del
...
Use in graph.
2023-07-14 12:38:56 -06:00
Behdad Esfahbod
7f1ff9c881
[graph] Micro-optimize array access
2023-07-14 12:22:24 -06:00
Behdad Esfahbod
d9cf9b5f07
[priority-queue] Inline insert()
2023-07-14 12:19:10 -06:00
Behdad Esfahbod
d00b88737e
Revert "[subset/closure] Batch recursions in scheduled stages"
...
This reverts commit f2aaeeb301 .
2023-07-14 11:26:51 -06:00
Behdad Esfahbod
5e42f7bb6d
Revert "Revert "[priority-queue] Inline a couple more""
...
This reverts commit 915410e526 .
Mistake.
2023-07-14 11:26:38 -06:00
Behdad Esfahbod
915410e526
Revert "[priority-queue] Inline a couple more"
...
This reverts commit 8704d73213 .
2023-07-14 11:19:12 -06:00
Behdad Esfahbod
f2aaeeb301
[subset/closure] Batch recursions in scheduled stages
...
Going to revert. Doesn't pass tests and savings are minor.
2023-07-14 11:19:12 -06:00
Khaled Hosny
5a65ede5d4
Minor
2023-07-12 10:18:31 +03:00
Khaled Hosny
d160d9389c
8.0.1
8.0.1
2023-07-12 08:27:25 +03:00
Behdad Esfahbod
8704d73213
[priority-queue] Inline a couple more
2023-07-10 18:11:50 -06:00
Behdad Esfahbod
4c9e8b848b
[priority-queue] Always-inline a method
2023-07-10 18:04:03 -06:00
Behdad Esfahbod
c41b0d7b83
[sanitize/PairValueRecord] Add a max_size for faster sanitize
2023-07-10 17:25:08 -06:00
Behdad Esfahbod
c14f94f76b
Fix compiler error
...
hb-ot-var-common.hh:758:32: error: implicit conversion from 'int' to 'char' changes value from 191 to -65 [-Werror,
-Wconstant-conversion]
*it++ = (DELTAS_ARE_ZERO | 63);
2023-07-10 19:03:20 -04:00
Behdad Esfahbod
fcc5d3df39
Add -Wconstant-conversion to errors
2023-07-10 19:03:20 -04:00
dependabot[bot]
d1855e902d
Bump github/codeql-action from 2.20.1 to 2.20.3
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.20.1 to 2.20.3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/f6e388ebf0efc915c6c5b165b019ee61a6746a38...46ed16ded91731b2df79a2893d3aea8e9f03b5c4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-10 14:34:15 -04:00
Behdad Esfahbod
997986ab30
[subset/hvar] Error handling
...
Fixes https://oss-fuzz.com/testcase-detail/5029952234586112
2023-07-09 15:16:06 -06:00
Behdad Esfahbod
0980e2b748
Minor casts
2023-07-09 15:13:57 -06:00
Behdad Esfahbod
db3aeeb547
[subset] Fix cast-align issue
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4316
2023-07-09 12:32:49 -06:00
Behdad Esfahbod
fc24ffbfb3
[priority-queue] Minor simplify
...
Tail-recursion definitely was being optimized by compiler,
but I prefer writing it this way.
2023-07-09 11:05:52 -06:00
Behdad Esfahbod
557653abce
[cff] Minor; add tableTag
2023-07-09 10:18:04 -06:00
Behdad Esfahbod
6df8ce7b41
[bit-page] Remove disabled assertion
2023-07-09 09:58:02 -06:00
Behdad Esfahbod
9b9a9c6f4a
[bit-page] Speed up is_empty()
2023-07-09 09:55:00 -06:00
Behdad Esfahbod
2f4ed5e939
[bit-page] Short-circuit is_subset()
2023-07-09 09:45:46 -06:00
Behdad Esfahbod
347c1f7013
[set] Keep (lazy) population per bit-page
...
36% speedup in:
BM_subset/subset_glyphs/merged.devalast.ttf/10
2023-07-09 09:33:04 -06:00
Behdad Esfahbod
04ee306b9a
[subset/hmtx] Another TODO
2023-07-09 07:37:57 -06:00
Behdad Esfahbod
caef35b3ef
[subset/hmtx] TODO
2023-07-09 07:23:16 -06:00
Behdad Esfahbod
982554c71c
[subset/cff1] Speed up plan_subset_charset more
...
16% speed up in retaingid subsetting NotoSansCJKkr-Regular.otf.
2023-07-09 07:02:03 -06:00
Khaled Hosny
15d8f0ca7c
[doc] Fix warning: Section has no title and no file
...
Move the private macros to the hb-common section, instead of a file-less
one.
2023-07-09 10:56:36 +03:00
Behdad Esfahbod
e60ec9dcd3
[subset/cff2] Speedup retaingids serialize
...
10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10
2023-07-08 20:48:18 -06:00
Behdad Esfahbod
b583978bdf
[subset/DeltaSetMapIndex] Speedup retaingids serialize()
2023-07-08 20:43:33 -06:00
Behdad Esfahbod
3505486a0d
[subset/DeltaSetMapIndex] Micro-optimize
2023-07-08 20:28:45 -06:00
Behdad Esfahbod
c8f6ae1df7
[subset/hvar/retaingids] Synthesize a DeltaSetIndexMap if needed
...
Before we were emitting the entire VarStore rows if advMap
was Null. Instead, synthesize an advMap.
20% speed up in subset_glyphs/SourceHanSans-VF.otf/retaingids benchmark.
2023-07-08 20:23:20 -06:00
Behdad Esfahbod
1f4645c6fc
[subset/hvar] Speed up
2023-07-08 20:23:20 -06:00
Khaled Hosny
8d99db5c3b
[wasm] Typo [ci skip]
2023-07-09 03:42:38 +03:00
Behdad Esfahbod
8115033ac3
[hvar] Speed up retaingids planning
...
35% speedup in:
BM_subset/subset_glyphs/SourceHanSans-VF.otf/retaingids/10
2023-07-08 18:33:42 -06:00
Behdad Esfahbod
1fe1a49790
[bimap] Minor vector pre-alloc
2023-07-08 18:33:42 -06:00
Behdad Esfahbod
7a7001dfcf
Typo
2023-07-08 18:33:42 -06:00
Khaled Hosny
b4305532a7
8.0.0
8.0.0
2023-07-09 03:20:27 +03:00
Khaled Hosny
5b8ba51251
[doc] Fix warning about missing hb-gobject section
...
We don’t build hb-gobject docs anymore, lets not bother gtk-doc with it.
2023-07-09 03:20:27 +03:00
Khaled Hosny
0ed946c379
[wasm] Fix warning
...
In file included from src/harfbuzz.cc:62:
src/hb-wasm-shape.cc:27:9: warning: 'HB_DEBUG_WASM' macro redefined [-Wmacro-redefined]
^
src/hb-debug.hh:393:9: note: previous definition is here
^
1 warning generated.
2023-07-09 03:20:27 +03:00
Khaled Hosny
afe0910295
[font] Actually deprecate get_glyph_shape()
...
We previously marked it as deprecated in the documentation but didn’t
actually deprecate it in code. Now the only known users have migrated to
draw_glyph(), lets deprecate o=it for good.
2023-07-09 03:20:27 +03:00
Behdad Esfahbod
c6a01441d9
[sanitize] Always-inline OffsetTo::sanitize()
...
8% speed up in sanitizing Gulzar.
2023-07-08 16:32:45 -06:00
Behdad Esfahbod
f60dbd906a
Fix thinko
...
Fixes https://oss-fuzz.com/testcase-detail/4787105656864768
2023-07-08 16:21:24 -06:00
Behdad Esfahbod
d84c5f29b7
Revert "[gsubgpos] Make (Chain)Context funcs templatized"
...
This reverts commit 03ac08d267eb7ad2f1ac039115fc0030ea475fae.
2023-07-08 16:02:50 -06:00
Behdad Esfahbod
e73223b9e5
[gsubgpos] Make (Chain)Context funcs templatized
...
Unfortunately they still won't be inlined because the matcher_t
needs function pointers. So, no speed up. Going to revert.
2023-07-08 16:02:32 -06:00
Behdad Esfahbod
3e3820badd
Simplify a few bool returns
...
Unnecessary. Cast to bool does the job.
2023-07-08 14:36:23 -06:00
Behdad Esfahbod
1c8d54deef
[shape] Another always-inline
2023-07-08 14:28:07 -06:00
Behdad Esfahbod
df45067fbb
[shape] More always-inline
2023-07-08 14:22:59 -06:00