Jt,
It has less to do with the OS and more to do with the way zmq has been
integrated with libuv and its behaviour under "load" (lots of pending
messages).

If you don't mind my reluctance to dive into the specifics, what problem
are you trying to solve? Would another library like axon serve your needs?
What about another zmq integration?

-Schoon


On Tue, Sep 3, 2013 at 9:17 PM, Jt Whissel <[email protected]> wrote:

> 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.
>

-- 
-- 
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.

Reply via email to