Git Product home page Git Product logo

disruptor-cpp's People

Watchers

 avatar

Forkers

tempbottle

disruptor-cpp's Issues

Performance improvement

Performance can be GREATLY improved by not using std::vectors. After I modified 
code to use arrays for both Consumer lists and actual RingBuffer performance 
increased dramatically.

Just submitting it so that other people are aware - I've considered not using 
the library at all for performance reasons, until I've made the change.

Original issue reported on code.google.com by [email protected] on 13 Sep 2011 at 6:37

TCP queueing with epoll

Brief description of the program:

1. Producer thread will mark entries with the fd to be processed as they are 
received from epoll_wait()
2. Consumer thread will call read(2) on descriptor from the entry

Internal reporting numbers are great, but when combined with tcpdump to measure 
wall-to-wall latency we see that messages spend *very* long time in TCP buffer.

This is on 64-bit Linux 2.6.18-164.20.1.el5 #1 SMP

When read() is done in the same thread as epoll, there's no issue.

Original issue reported on code.google.com by [email protected] on 2 Sep 2011 at 5:59

Util.hpp missing

What steps will reproduce the problem?
1. WaitStrategy.h refers to a Util.h, but there is no Util.h in the src 
directory, there is only a util.h

Original issue reported on code.google.com by [email protected] on 30 Sep 2011 at 11:16

util.cc use un-portable function fls.

What steps will reproduce the problem?

Try to compile under vc2010 and got compile error in function.

int ceilingNextPowerOfTwo(const int & x)
{
  return 1 << fls(x - 1);
}

Can you consider to replace it to :
int ceilingNextPowerOfTwo(int x)
{
    assert(x>0);
    x--;
    x |= x >> 1;
    x |= x >> 2;
    x |= x >> 4;
    x |= x >> 8;
    x |= x >> 16;

    return ++x;
}

Original issue reported on code.google.com by [email protected] on 4 Sep 2011 at 12:36

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.