Anna Henningsen
Anna Henningsen
Hm yeah, I’m not sure what exactly might cause this. What database driver are you using? What happens when you print out `dbResult` with `console.log()`?
That’s almost certainly not going to work – `simple-ssh` uses `ssh2` which doesn’t provide a synchronous interface (and can’t do that, really, because network connections in Node.js are unconditionally asynchronous...
> I believe the function might spawn a new thread each time, which might have a great cost. It does not, unless you specify the `timeout` or `breakOnSigint` options.
Then, yes, it will spawn a new native thread each time. If you want to figure out the performance impact of that, it’s going to vary from system to system,...
> > Then, yes, it will spawn a new native thread each time. If you want to figure out the performance impact of that, it’s going to vary from system...
Sure! https://github.com/nodejs/node/blob/20de5f7efce655d435cfb5ae0811577314fbdeb9/src/node_contextify.cc#L949-L985 might be relevant for you, and in particular the `Watchdog` class which is implemented in https://github.com/nodejs/node/blob/20de5f7efce655d435cfb5ae0811577314fbdeb9/src/node_watchdog.h and https://github.com/nodejs/node/blob/20de5f7efce655d435cfb5ae0811577314fbdeb9/src/node_watchdog.cc.
> - Will libuv get hold of a random port, then trigger the http request via this port and still use `epoll api`? It’s the kernel that implicitly provides a...
Buffer objects aren’t cached, they are pooled – and it *sounds* like you’re looking for a way to cache them, so that they can be re-used instead of being fully...
@davidchappelle Assuming that you’re describing an idea for how it should be, and not the current state of things, yes. (For the current state of things: The pool is fixed-size,...
Is there maybe just a version mismatch? Are you comparing two x64 binaries or are they for different architectures?