yeslogic / allsorts

Font parser, shaping engine, and subsetter implemented in Rust
https://yeslogic.com/blog/allsorts-rust-font-shaping-engine/
Apache License 2.0
706 stars 23 forks source link

Shaping is slow in Miri #74

Closed LoganDark closed 1 year ago

LoganDark commented 2 years ago

Shaping is slow in Miri.

Constructing a font is relatively fast, but shaping anything... well, I tried to shape the string "a" and it never finished.

I tried to use the OutlineBuilder however, and it immediately started emitting instructions to the OutlineSink.

So shaping specifically is doing something that Miri really does not like.

Also I found https://github.com/servo/pathfinder/issues/516 lol

wezm commented 2 years ago

Not really sure I can do much here as I'm not familiar with miri internals. It might be best raised as an issue on the miri repo with a minimum reproduction.

LoganDark commented 2 years ago

I think miri supports some sort of tracing or profiling; trying to find it. I'll let you know if there is something you can do.

wezm commented 1 year ago

Might close this since I think it's more a MIRI issue than an Allsorts issue.