feat: implement loading of ability videos #205

Merged
Sainan merged 2 commits from ability-videos into main 2024-05-29 16:44:54 -07:00
Owner
No description provided.
OrdisPrime (Migrated from github.com) reviewed 2024-05-08 15:50:11 -07:00
OrdisPrime (Migrated from github.com) commented 2024-05-08 15:50:04 -07:00
Author
Owner

wouldn't readFile be better as it is non-blocking? same for the other Sync?

wouldn't readFile be better as it is non-blocking? same for the other Sync?
Sainan reviewed 2024-05-08 15:51:10 -07:00
Author
Owner

You would know that better than me. From what I understand, JavaScript is single-threaded either way.

You would know that better than me. From what I understand, JavaScript is single-threaded either way.
OrdisPrime (Migrated from github.com) reviewed 2024-05-08 16:10:43 -07:00
OrdisPrime (Migrated from github.com) commented 2024-05-08 16:10:43 -07:00
Author
Owner

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.

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.
Sainan reviewed 2024-05-08 16:14:19 -07:00
Author
Owner

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.

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.
OrdisPrime (Migrated from github.com) reviewed 2024-05-08 18:00:12 -07:00
OrdisPrime (Migrated from github.com) commented 2024-05-08 18:00:12 -07:00
Author
Owner

ill check tomorrow!

ill check tomorrow!
Sign in to join this conversation.
No description provided.