Skip to content

Commit

Permalink
Performance improved
Browse files Browse the repository at this point in the history
  • Loading branch information
zieckey committed Mar 18, 2017
1 parent 080fbc7 commit 39c47a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ std::pair<int, int> PipeEventWatcherRunOnce() {
}

int main(int argc, char* argv[]) {
numPipes = 1000;
numActive = 10;
numWrites = 1000;
numPipes = 5000;
numActive = 100;
numWrites = 5000;

g_pipes.resize(2 * numPipes);
for (int i = 0; i < numPipes; ++i) {
Expand Down
1 change: 1 addition & 0 deletions evpp/event_loop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ void EventLoop::QueueInLoop(const Functor& cb) {

if (!notified_.load()) {
watcher_->Notify();
notified_.store(true);
}
}

Expand Down

0 comments on commit 39c47a4

Please sign in to comment.