Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blackysky
on Oct 28, 2013
|
parent
|
context
|
favorite
| on:
First Bitcoin ATM
readFileSync ... not good not good .... nodejs is sexier async ;)
wcummings
on Oct 28, 2013
[–]
node.js is sexier when it doesn't serve stacktraces in production. Plus async files reads still happen in an internal threadpool (one thread per core, hardcoded, IIRC) so it's pretty easy to saturate that anyway, you should be caching static assets.
Jare
on Oct 28, 2013
|
parent
|
next
[–]
The express framework activates the view cache by default when configured for production, so both problems are actually the same.
wcummings
on Oct 28, 2013
|
root
|
parent
|
next
[–]
I suspect it's not configured for prod, since I'm seeing a stacktrace
blackysky
on Oct 28, 2013
|
parent
|
prev
[–]
you are right but I'll still use async over sync anytime... :)
Jare
on Oct 28, 2013
|
root
|
parent
[–]
You will often prefer to use sync for one-time loads or for debugging.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: