BlockIntervalSeconds metric & DB tests cleanup & benchmark improv.#2337
BlockIntervalSeconds metric & DB tests cleanup & benchmark improv.#2337
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2337 +/- ##
==========================================
- Coverage 61.08% 60.89% -0.2%
==========================================
Files 197 197
Lines 16246 16297 +51
==========================================
Hits 9924 9924
- Misses 5460 5508 +48
- Partials 862 865 +3
|
|
|
I'm kind of confused why we have |
I think we still want to have a key-value DB written in Go so we can cross-compile easy. But I am less convinced now that it should be default since a) syndtr/goleveldb#226 b) it is magnitude slower than C I will try to verify this claim |
|
I'm super in favor of just using CLevelDB. I don't think its reasonable to support cross-compilation long term, if we want faster crypto speeds / or any of the newer cryptography ideas. (e.g. BLS) |
|
Go-ethereum still uses |
|
We currently compact every single block. We need to significantly reduce the frequency of compactions imo. |
yes, but this is out of scope of this PR. Here I only update outdated cleveldb library.
Datadog is using it for sure. |
|
just saw there is no "Issues" tag in https://github.com/DataDog/leveldb. maybe it is a bad idea after all |
73b9ed3 to
6929ba7
Compare
6929ba7 to
f6b078e
Compare
Why: original fork is abandoned and not supported anymore. Changes: - LevelDB 1.19 (LevelDB and Snappy are both compiled and linked statically, so while you will not need them installed on your target machine, you should have a roughly compatible version of libstdc++.) - snappy and lz4 libs included by default
Otherwise, it's impossible to see outliers #1835 (comment)
otherwise we're benchmarking overriding single key (because hash stays the same!)
75fc256 to
e1bda36
Compare
| make && \ | ||
| sudo scp -r out-static/lib* out-shared/lib* /usr/local/lib/ && \ | ||
| cd include/ && \ | ||
| sudo scp -r leveldb /usr/local/include/ && \ |
There was a problem hiding this comment.
can we do this all without using sudo?
DO NOT SQUASH