Commit Graph
308 Commits
Author SHA1 Message Date
Jaco Greeff e1135a665b Re-implementation of Patricia-Merkle Trie (#203)
* Start of trie-db re-implementation

* WIP commit

* More WIP

* WIP, seems complete, untested

* Ported trie-db operational

* Add Ethereum trie tests

* Use u8aConcat to construct u8a

* Basic RocksDb interface

* Combine engines into DB, expand tests

* Update Trie with transaction wrapper

* LevelDb (sync) interface

* Remove unused (for now) package (compatibility)

* trie-d -> trie-db-old, trie-db-ext -> trie-db

* Version bump

* Skip old trie tests (package to be removed)

* Skip tests (fixed)

* Remove non-used RocksDb spec

* Skip FileFlat tests (deprecated?)
2018-09-01 22:17:57 +02:00
Travis CI 29ddd7d357 [CI Skip] 0.28.25 2018-08-29 14:16:15 +00:00
Jaco Greeff 36823cb598 Merge branch 'master' of github.com:polkadot-js/util 2018-08-29 16:11:21 +02:00
Jaco Greeff 13925f580a Revert "Revert "Fix length (the linter really should have caught this one)""
This reverts commit 93a73e9e44.
2018-08-29 16:11:08 +02:00
Jaco Greeff 7ff9ff8b34 Revert "Revert "diskdown to overwrite values when changed (if space available) (#202)""
This reverts commit bd0eb4cb34.
2018-08-29 16:11:04 +02:00
Travis CI e0182d0412 [CI Skip] 0.28.24 2018-08-29 14:08:21 +00:00
Jaco Greeff bd0eb4cb34 Revert "diskdown to overwrite values when changed (if space available) (#202)"
This reverts commit 07af959b15.
2018-08-29 16:02:13 +02:00
Jaco Greeff 93a73e9e44 Revert "Fix length (the linter really should have caught this one)"
This reverts commit 9a66137c62.
2018-08-29 16:01:54 +02:00
Travis CI 041f84e6e1 [CI Skip] 0.28.23 2018-08-29 13:43:00 +00:00
Jaco Greeff 9a66137c62 Fix length (the linter really should have caught this one) 2018-08-29 15:36:39 +02:00
Travis CI d9bd02c1e1 [CI Skip] 0.28.22 2018-08-29 13:30:02 +00:00
Jaco Greeff 07af959b15 diskdown to overwrite values when changed (if space available) (#202)
* Overwrite values when changed (if space available)

* Remove old LRU dependency completely
2018-08-29 15:05:54 +02:00
Travis CI 5155ed7e97 [CI Skip] 0.28.21 2018-08-29 09:20:52 +00:00
Jaco Greeff 20d8420d6f Fix progress calculation on compact 2018-08-29 11:15:30 +02:00
Jaco Greeff 94509cfbfb Pass through total keys 2018-08-29 11:04:27 +02:00
Travis CI 9c401b83b5 [CI Skip] 0.28.20 2018-08-29 08:46:44 +00:00
Jaco Greeff ea1549de04 Send progress messages more often (#201) 2018-08-29 10:43:37 +02:00
Travis CI b8e7e3fd2c [CI Skip] 0.28.19 2018-08-28 19:59:36 +00:00
Jaco Greeff 1654aa46fe Re-add the LRU removal (higher-level) (#200) 2018-08-28 21:54:47 +02:00
Travis CI e29f3fc964 [CI Skip] 0.28.18 2018-08-28 19:13:59 +00:00
Jaco Greeff 372e2fc903 Revert LRU removal (#199)
* Revert "Remove db-diskdown LRU (#198)"

This reverts commit 219f12a65b.

* Re-add LRU for db-diskdown

* Re-add depth check
2018-08-28 21:10:47 +02:00
Travis CI 81738e212a [CI Skip] 0.28.17 2018-08-28 18:41:00 +00:00
Jaco Greeff 219f12a65b Remove db-diskdown LRU (#198) 2018-08-28 20:36:44 +02:00
Travis CI ff78c02eb5 [CI Skip] 0.28.16 2018-08-28 15:16:47 +00:00
Jaco Greeff 3f7d3f1e65 Fix db-diskdown compacting header offset 2018-08-28 17:11:08 +02:00
Travis CI 6aa49334c4 [CI Skip] 0.28.15 2018-08-28 12:12:09 +00:00
Jaco Greeff dbb064fd2c Use progress callback for compacting (#197) 2018-08-28 14:07:00 +02:00
Travis CI f0af13d0c7 [CI Skip] 0.28.14 2018-08-28 10:35:32 +00:00
Jaco Greeff 50168b5fd2 Combined compacting test (#196)
* Compaction tests

* Update compacting reporting

* Unused imports

* Reporting
2018-08-28 12:30:16 +02:00
Travis CI 3fe0458ec1 [CI Skip] 0.28.13 2018-08-28 08:05:38 +00:00
Jaco Greeff 81a86fed5b Compact combined database (#195) 2018-08-28 10:02:28 +02:00
Travis CI f92db3f8e0 [CI Skip] 0.28.12 2018-08-27 16:02:46 +00:00
Jaco Greeff 0de0ed7e72 Merge branch 'master' of github.com:polkadot-js/util 2018-08-27 17:58:44 +02:00
Jaco Greeff 43b47ada90 2 ^ 40 file offset allowed 2018-08-27 17:58:38 +02:00
Travis CI 3a07c28af6 [CI Skip] 0.28.11 2018-08-27 15:12:44 +00:00
Jaco Greeff 7a492d5c03 Trim file offset to 4 bytes 2018-08-27 17:08:18 +02:00
Travis CI df6d53a8b5 [CI Skip] 0.28.10 2018-08-27 14:39:49 +00:00
Jaco Greeff 9e6e5a3598 Merge branch 'master' of github.com:polkadot-js/util 2018-08-27 16:35:25 +02:00
Jaco Greeff e42a70fb1b Always use diskdown 32-byte keys 2018-08-27 16:35:21 +02:00
Travis CI 796554cf1a [CI Skip] 0.28.9 2018-08-27 12:53:05 +00:00
Jaco Greeff 44ce7fa901 diskdown default to Combined 2018-08-27 14:48:42 +02:00
Travis CI 5a832ad224 [CI Skip] 0.28.8 2018-08-27 12:25:01 +00:00
Jaco Greeff e8fd166b3f Add random access file diskdown option (#194)
* Add random access file diskdown option

* Skip diskdown Combined tests
2018-08-27 14:20:02 +02:00
Travis CI e3f640d07d [CI Skip] 0.28.7 2018-08-24 11:53:12 +00:00
Jaco Greeff 9fe46971e6 Flatten db-diskdown directory levels 2018-08-24 13:47:51 +02:00
Travis CI b9aa05684f [CI Skip] 0.28.6 2018-08-24 10:04:30 +00:00
Jaco Greeff 35fdfc184e Update db-diskdown base64 filepath encoding 2018-08-24 11:59:35 +02:00
Jaco Greeff 3540c5c382 db-diskdown paths as base64 (file & directory friendly) 2018-08-24 11:57:16 +02:00
Travis CI efd5249b41 [CI Skip] 0.28.5 2018-08-24 09:16:48 +00:00
Jaco Greeff 5f3928a78e Add db-diskdown (simple disk-based LRU KV map) (#193)
* Add db-diskdown (simple disk-based LRU KV map)

* TODOs

* Split path based on key mapping

* Swap back to in-memory trie
2018-08-24 11:11:23 +02:00