Skip to content

Commit

Permalink
Drop a few checks which are causing significant CPU usage on some nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Jun 14, 2016
1 parent 2ff5468 commit 92919f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dht/dhtcore/NodeStore.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static void logLink(struct NodeStore_pvt* store,

static void _checkNode(struct Node_Two* node, struct NodeStore_pvt* store, char* file, int line)
{
return; // too much CPU consumption !
if (!Defined(PARANOIA)) {
return;
}
Expand Down Expand Up @@ -212,6 +213,7 @@ static void _checkNode(struct Node_Two* node, struct NodeStore_pvt* store, char*

static void _verifyNode(struct Node_Two* node, struct NodeStore_pvt* store, char* file, int line)
{
return; // too much CPU consumption !
if (!Defined(PARANOIA)) {
return;
}
Expand Down Expand Up @@ -262,6 +264,7 @@ static void _verifyNode(struct Node_Two* node, struct NodeStore_pvt* store, char
// Verify is more thorough than check because it makes sure all links are split properly.
static void _verify(struct NodeStore_pvt* store, char* file, int line)
{
return; // too much CPU consumption !
if (!Defined(PARANOIA)) {
return;
}
Expand All @@ -278,6 +281,7 @@ static void _verify(struct NodeStore_pvt* store, char* file, int line)

static void _check(struct NodeStore_pvt* store, char* file, int line)
{
return; // too much CPU consumption !
if (!Defined(PARANOIA)) {
return;
}
Expand Down

0 comments on commit 92919f9

Please sign in to comment.