Giter Site home page Giter Site logo

Comments (2)

rodgert avatar rodgert commented on September 27, 2024

Have you tested with the most recent code? There was an issue fixed
recently that would lead to 100% CPU utilization.

The poll should work the same as the rest of Asio, which will block until
an FD becomes readable, or a periodic timeout occurs.

On Friday, June 19, 2015, David Nadlinger [email protected] wrote:

In my fully asynchronous application, I need to keep track of the number
of connections on some ZeroMQ sockets, for which I am using the socket
monitor feature. However, because the monitoring socket pair uses the
inproc transport, azmq resorts to polling for new events for implementing
async_read. As a side effect, this leads my program to hog 100% of its
CPU core all of the time. Is there any chance to implement this more
efficiently without changing ZeroMQ itself? (I'd like to avoid shipping a
custom fork.)

As a workaround, I currently only check for new socket events on a timer.
But this is obviously not ideal, as it introduces extra latency to the
handling of these events.


Reply to this email directly or view it on GitHub
#97.

from azmq.

dnadlinger avatar dnadlinger commented on September 27, 2024

Sorry for not responding earlier; yes, I believe this has been fixed. I'm a bit hazy on the details, but I checked my code base, and I definitely reverted the timer workaround.

from azmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.