[nanomsg] Re: daily nng progress update. :-)

  • From: omid shahraki <dreamstechgroup@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Mon, 23 Jan 2017 04:31:48 -0800

Sorry. But it was just on the go. I was thinking of using linked list in
cases we have iterations on one side and list enrichment on the other side.
And concerning nng linked list design and list.c for usage and test, I
think it would need a bit adjustment. Could you provide a sample for it.
For example iterating through a container such as vector and inserting into
linked list.;-)

Bests,
Omid

On Jan 23, 2017 02:46, "Garrett D'Amore" <garrett@xxxxxxxxxx> wrote:

I am not sure I understand the question.  What is the relevance of linked
lists here?

Sent from my iPhone

On Jan 22, 2017, at 12:03 PM, omid shahraki <dreamstechgroup@xxxxxxxxx>
wrote:

Could you bring an example of using linked list in a loop? Such as
fetching requests through NIO and adding to linked list.

Omid

On Jan 22, 2017 14:09, "Garrett D'Amore" <garrett@xxxxxxxxxx> wrote:

Good news is that I’ve implemented NNG_OPT_SNDFD and NNG_OPT_RCVFD.

The bad news is that I’m not thrilled with the extra levels of indirection
I’ve had to do have done to performance — the context switching between
threads has a measurable impact — cutting my performance into about half of
what it was before.

I have some ideas for how to fix this — including disabling notifications
for cases where the caller hasn’t asked for them, and avoiding one more
context switch even when I do notifications if the socket is buffered.
 (Unbuffered sockets have to endure some pain — not sure how I can help
them.)

Anyway, optimizations aside, I’m reasonably comfortable with the API now,
and all of the critical functionality required for the compatibility layer
is now implemented.  I had hoped to have that layer implemented tonight,
but its taken a while to debug the various event stuff on the different
platforms.

I’ll probably focus on finishing this functionality before I go back to
work out the context switch related issues.

 - Garrett



Other related posts: