HerringtonDarkholme / vue-compiler

Vue's template compiler reimplemented in Rust!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rayon parallelization?

HerringtonDarkholme opened this issue · comments

The experimentation shows that rayon has at least 100us overhead for thread pool initialization.
However, most template can be compiled within 100us. The parallelization, at least in practice, does not pay off.

The example is the most complicated SFC in element-plus, el-table.vue. The compilation takes about 100us without thread pool.

But after the thread pool is introduced the compilation time comes to 200us+.