getyourguide / vue-class-migrator

Vue 3 Migration helper for applications using Vue 2.7
Apache License 2.0
61 stars 20 forks source link

Utilize Node Workers to parallelize files #141

Open JoelYoung01 opened 9 months ago

JoelYoung01 commented 9 months ago

Hello! I was poking at the code and I noticed the use of Promises to run the migrate file work per file and was thinking it could be even further optimized if the process was updated to use Node Workers.

I saw in the contributing guidelines that it was recommended to open an issue for some discussion first, so here we are. Anyone have any thoughts on this?

JoelYoung01 commented 9 months ago

I played with this idea for an hour or two, but ran into a lot of issues trying to serialize the data from the main to the worker threads.

I'd really be interested to hear if anyone with more experience with worker threads in Node thinks of this idea and it's feasibility.