Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | trie: ensure dirty flag is unset for embedded child nodes | Felix Lange | 2016-10-18 | 1 | -15/+28 |
| | | | | This was caught by the new invariant check. | ||||
* | trie: ensure resolved nodes stay loaded | Felix Lange | 2016-10-18 | 1 | -21/+70 |
| | | | | | | | | Commit 40cdcf1183 broke the optimisation which kept nodes resolved during Get in the trie. The decoder assigned cache generation 0 unconditionally, causing resolved nodes to get flushed on Commit. This commit fixes it and adds two tests. | ||||
* | trie, core/state: improve memory usage and performance (#3135) | Felix Lange | 2016-10-15 | 1 | -2/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | trie: fix delete bug for values contained in fullNode | Felix Lange | 2016-09-30 | 1 | -35/+124 |
| | | | | | | | | | Delete crashed if a fullNode contained a valueNode directly. This bug is very unlikely to occur with SecureTrie, but can happen with regular tries. This commit also introduces a randomised test which triggers all trie operations, which should prevent such bugs in the future. Credit for finding this bug goes to Github user @rjl493456442. | ||||
* | core, trie: replace state caches with trie journal | Felix Lange | 2016-09-28 | 1 | -41/+0 |
| | |||||
* | core, core/state, trie: enterprise hand-tuned multi-level caching | Péter Szilágyi | 2016-05-26 | 1 | -1/+1 |
| | |||||
* | all: fix go vet warnings | Felix Lange | 2016-04-15 | 1 | -1/+1 |
| | |||||
* | cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache | Péter Szilágyi | 2016-03-09 | 1 | -1/+1 |
| | |||||
* | trie: added error handling | zsfelfoldi | 2015-12-01 | 1 | -1/+74 |
| | | | | Created alternate versions of Trie and SecureTrie functions that can return a MissingNodeError (used by ODR services) | ||||
* | core, trie: new trie | Felix Lange | 2015-09-23 | 1 | -124/+140 |
| | |||||
* | trie: improve benchmarks | Felix Lange | 2015-09-23 | 1 | -34/+72 |
| | |||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 1 | -1/+1 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 1 | -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". | ||||
* | all: update license information | Felix Lange | 2015-07-07 | 1 | -0/+16 |
| | |||||
* | trie: dirty tracking | Jeffrey Wilcke | 2015-07-04 | 1 | -1/+1 |
| | |||||
* | trie: fixed tests | obscuren | 2015-06-21 | 1 | -1/+1 |
| | |||||
* | Fixed mkdnode & added some tests | obscuren | 2015-03-19 | 1 | -1/+10 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 1 | -11/+11 |
| | |||||
* | Merge branch 'develop' into poc-9 | obscuren | 2015-03-06 | 1 | -1/+1 |
|\ | |||||
| * | Start at 0 | obscuren | 2015-03-06 | 1 | -2/+1 |
| | | |||||
* | | Delet => Delete | obscuren | 2015-03-03 | 1 | -0/+32 |
| | | |||||
* | | Secure trie | obscuren | 2015-03-01 | 1 | -1/+0 |
|/ | |||||
* | Fixed iterator | obscuren | 2015-02-08 | 1 | -0/+39 |
| | |||||
* | Moved ptrie => trie. Removed old trie | obscuren | 2015-01-08 | 1 | -298/+161 |
| | |||||
* | Refactored ethutil.Config.Db out | obscuren | 2015-01-07 | 1 | -53/+2 |
| | |||||
* | Fixed tests for 'types' | obscuren | 2014-11-19 | 1 | -0/+2 |
| | |||||
* | Merge branch 'tests' into poc8 | obscuren | 2014-11-19 | 1 | -173/+116 |
|\ | |||||
| * | update imports order per goimports | Taylor Gerring | 2014-11-16 | 1 | -1/+2 |
| | | |||||
| * | Merge branch 'develop' of https://github.com/tgerring/go-ethereum into tests | Taylor Gerring | 2014-11-15 | 1 | -7/+4 |
| |\ | | | | | | | | | | | | | | | | Conflicts: p2p/messenger_test.go trie/trie_test.go | ||||
| | * | Convert trie tests to gocheck | Taylor Gerring | 2014-11-13 | 1 | -164/+111 |
| | | | |||||
| * | | Merge branch 'develop' of https://github.com/tgerring/go-ethereum | Taylor Gerring | 2014-11-15 | 1 | -166/+111 |
| | | | |||||
* | | | j => i | obscuren | 2014-11-18 | 1 | -1/+0 |
| | | | |||||
* | | | added output test | obscuren | 2014-11-18 | 1 | -1/+2 |
| | | | |||||
* | | | Added some comparison tests for the new ptrie | obscuren | 2014-11-18 | 1 | -0/+56 |
|/ / | |||||
* / | Transaction execution fixes | obscuren | 2014-11-12 | 1 | -1/+13 |
|/ | |||||
* | ethtrie => trie | obscuren | 2014-10-31 | 1 | -0/+434 |