mp4096 / indentex

An indentation-based superset of LaTeX
MIT License
9 stars 2 forks source link

Implement multithreading using rayon #2

Closed syxolk closed 7 years ago

syxolk commented 7 years ago

Using rayon now. This has similar performance to #1 but is easier to read and more idiomatic.

syxolk commented 7 years ago

I'v actually benchmarked indentex by running it on 10,000 copies of list_like.inden.tex. It was roughly three times faster (6 seconds as opposed to 22 seconds; debug build) on my i5 quadcore CPU.

syxolk commented 7 years ago

10,000 tex files is probably not the typical use case, I know :smiley_cat:

mp4096 commented 7 years ago

Yeah, sure, I didn't mention that I tested on a very small corpus of texts, definitely in the region where the concurrency overhead is more than the concurrency speed-up.

mp4096 commented 7 years ago

Thank you! :tada: