Misterio77 / flavours

🎨💧 An easy to use base16 scheme manager that integrates with any workflow.
MIT License
506 stars 28 forks source link

Improve apply performance #9

Closed Misterio77 closed 3 years ago

Misterio77 commented 4 years ago

Performance seems to be great right now (the program runs in about 10ms if no hooks are ran).

But there's a place where we could improve, specifically when the template variables are replaced. Right now we do multiple passes on the template (one for each variable).

I'm not so sure on how to make multiple passes in a idiomatic-ish way, but will take a look.

Misterio77 commented 3 years ago

I think this isn't worth bothering with right now