Instead of memoizing the tuple of <lookup-idx,current-glyphs>, use a mapping of lookup-idx->current-glyphs instead. Saves some work. Speeds up 5%ish on NotoNastaliqUrdu-Regular.
Instead of memoizing the tuple of <lookup-idx,current-glyphs>, use a mapping of lookup-idx->current-glyphs instead. Saves some work. Speeds up 5%ish on NotoNastaliqUrdu-Regular.