feat: implement loading of ability videos #205
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ability-videos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
wouldn't readFile be better as it is non-blocking? same for the other Sync?
You would know that better than me. From what I understand, JavaScript is single-threaded either way.
based on my experience using non-sync methods is always better.
Yes, js is single-threaded however the whole server blocks while using a sync method, so lets use the non-sync ones here.
I'm afraid I'm not sure how to elegantly write this code to be async. Plus, I'm not sure the overhead of reading from a modern disk is that significant. Might be worse we were dealing with multiple clients. I would use express' sendFile, but it errors due to the weird paths.
ill check tomorrow!