Merge pull request #957 from majestrate/reduce-cpu-use-in-tun-handler-2019-12-09

reduce cpu use in logic thread
pull/958/head
Jeff 5 years ago committed by GitHub
commit fa75d7c96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -872,7 +872,6 @@ namespace llarp
}
llarp::LogWarn(Name(), " did not flush packets");
});
Router()->PumpLL();
}
bool

@ -273,8 +273,7 @@ namespace llarp
size_t
operator()(const AlignedBuffer& buf) const
{
return std::accumulate(buf.begin(), buf.end(), 0,
std::bit_xor< size_t >());
return *(reinterpret_cast< const size_t* >(buf.data()));
}
};

Loading…
Cancel
Save