Hey guys I have a question about console.log
I am running the latest node.js and I am on linux 64bit.
I noticed that after I send a packet with zmq (zeromq) the packet will be
sent faster if I do a console.log() after it
why is this? Is it because the OS is giving it high thread priority when
console.log is called?'
For example
// This takes about 12 seconds to send all the packets
for (var m = 0; m < 100000; m++)
{
pub.send(foo);
}
// This takes about 4 seconds to send all the packets
for (var m = 0; m < 100000; m++)
{
pub.send(foo);
console.log();
}
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.