aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
Commit message (Collapse)AuthorAgeFilesLines
* [release/1.4.18] trie, core/state: improve memory usage and performance (#3135)Felix Lange2016-10-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * trie: store nodes as pointers This avoids memory copies when unwrapping node interface values. name old time/op new time/op delta Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15) GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15) UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15) UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14) HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15) HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13) * trie: close temporary databases in GetDB benchmark * trie: don't keep []byte from DB load around Nodes decoded from a DB load kept hashes and values as sub-slices of the DB value. This can be a problem because loading from leveldb often returns []byte with a cap that's larger than necessary, increasing memory usage. * trie: unload old cached nodes * trie, core/state: use cache unloading for account trie * trie: use explicit private flags (fixes Go 1.5 reflection issue). * trie: fixup cachegen overflow at request of nick * core/state: rename journal size constant (cherry picked from commit 40cdcf1183df235e4b32cfdbf6182a00a0e49f24)
* [release/1.4.14] core, eth, trie: reuse trie journals in all our codePéter Szilágyi2016-09-281-0/+2
| | | | (cherry picked from commit 710435b51b97b4c688b70bda35ab9d1aa704a988)
* cmd, eth, ethdb, node: prioritise chaindata for resources, bump cachePéter Szilágyi2016-03-091-6/+17
|
* ethdb: fully disable metrics if not requested (oops?)Péter Szilágyi2016-02-231-0/+4
|
* ethdb: remove FlushFelix Lange2015-09-151-13/+8
|
* ethdb: add NewBatchFelix Lange2015-09-151-0/+20
|
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-3/+2
|
* Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-281-1/+1
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | ethdb, trie: removed RLE compressionJeffrey Wilcke2015-07-231-5/+5
| |
* | Merge pull request #1510 from fjl/license-fixesJeffrey Wilcke2015-07-231-4/+4
|\| | | | | all: license fixes
| * all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* | cmd, core, eth, ethdb: cache flag to allocate memory for db internal usePéter Szilágyi2015-07-221-6/+25
|/
* eth, ethdb: fix a data race during startup/shutdownPéter Szilágyi2015-07-091-36/+80
|
* all: update license informationFelix Lange2015-07-071-0/+16
|
* cmd/geth, eth, ethdb: monitor database compactionsPéter Szilágyi2015-06-301-13/+84
|
* ethdb: accessor for LDB. TODO remove this interfaceobscuren2015-06-301-0/+4
|
* eth, ethdb: measure database operation latencies tooPéter Szilágyi2015-06-241-11/+28
|
* core, eth, eth/fetcher, ethdb: polish metrics gathering a bitPéter Szilágyi2015-06-241-4/+16
|
* core, ethdb: instrument the block and state dbPéter Szilágyi2015-06-241-5/+14
| | | | | Conflicts: ethdb/database.go
* core, ethdb, trie: validate database errorsobscuren2015-06-211-2/+2
|
* common, ethdb: removed caching and LastTDobscuren2015-05-281-58/+6
|
* ethdb: documentation and corruption recoveryobscuren2015-05-211-8/+13
|
* eth, ethdb: lower the amount of open files & improve err messages for dbobscuren2015-05-121-2/+2
| | | | Closes #880
* ethdb: set open file limit to 128 for all leveldbsobscuren2015-05-101-1/+4
|
* Moved leveldb update loop to eth/backendBas van Kervel2015-04-231-25/+3
| | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb
* Queued level db writes and batch writes. Closes #647obscuren2015-04-081-27/+84
|
* Moved ethutil => commonobscuren2015-03-161-2/+2
|
* ethutil: remove Config variableFelix Lange2015-03-061-8/+3
| | | | | | | | | | | Various functions throughout the codebase used it to grab settings. This has to stop because I want to use them without reading the config file. These functions can now be used without reading the config first: * ethdb.NewLDBDatabase * ethrepl.NewJSRepl * vm.New
* removed messagesobscuren2015-02-131-2/+2
|
* Decode from stream directlyobscuren2014-12-231-0/+4
|
* Added storage root to dumpobscuren2014-11-041-1/+0
|
* Compress data on db level. Closes #174obscuren2014-11-031-17/+34
|
* Merge eth-go repository into go-ethereumFelix Lange2014-10-231-1/+1
| | | | mist, etheruem have been moved to cmd/
* Removed old codeobscuren2014-08-231-10/+3
|
* Moved keyring to ethutil & removed old methods. Implements #20obscuren2014-05-141-0/+2
|
* leveldb API changed for NewIterator. Fixes #20obscuren2014-02-281-1/+7
|
* Addad db name for new ldbobscuren2014-02-251-2/+6
|
* Added delete to database interfacesobscuren2014-02-241-0/+4
|
* The great mergeobscuren2014-02-151-0/+64