Open
Description
Looks like JS for
loop is far faster than forEach
(see video)
The slowest part of the auto-tag generation process is already outsourced to a web worker but it's currently using forEach
- https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/tags-auto/tags.worker.ts#L31
- https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/tags-auto/tags.worker.ts#L59
- https://github.com/whyboris/Video-Hub-App/blob/main/src/app/components/tags-auto/tags.worker.ts#L89
We may be able to get 2x the speed with a simple for
loop 🤞 🚀 🤞