zhoukk / disruptor-cpp Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/disruptor-cpp
Automatically exported from code.google.com/p/disruptor-cpp
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.