Skip to content

Conversation

@behdad
Copy link
Member

@behdad behdad commented Aug 12, 2025

HB does this.

Not cleaned up. Waiting for googlefonts/fontations#1600

3% speedup in NotoNastaliqUrdu benchmark.

@behdad behdad changed the title WIP [GDEF] Use a bit-set for representing mark-filtering-sets [GDEF] Use a bit-set for representing mark-filtering-sets Aug 14, 2025
@behdad
Copy link
Member Author

behdad commented Aug 14, 2025

I see 2% slowdown in NotoNastaliq; whereas in HB we don't see a slowdown. I still suggest we take it, since it improves NotoSansDuployan mega-font by over 10% in both HB & HR, even though we currently don't shape that font correctly.

First need to sort out no_std though.

@behdad
Copy link
Member Author

behdad commented Aug 14, 2025

I see 2% slowdown in NotoNastaliq; whereas in HB we don't see a slowdown.

This might be because the HB BitSet has more optimizations than Fontations U32Set. In particular, in HB we keep the last page accessed cached, to avoid a bsearch into the (granted, very small) page_map.

@behdad
Copy link
Member Author

behdad commented Aug 14, 2025

3% speedup in NotoNastaliqUrdu benchmark.

My benchmarks are a bit off today. I'll do better benchmarking another day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant