Commit Graph
352 Commits
Author SHA1 Message Date
Jaco Greeff 0b5d6bfb60 FlatDb LRU for data (key & value) 2018-09-04 10:49:25 +02:00
Travis CI 52d7c5da56 [CI Skip] 0.29.18 2018-09-03 18:09:07 +00:00
Jaco Greeff 37804f2484 Merge branch 'master' of github.com:polkadot-js/util 2018-09-03 20:03:59 +02:00
Jaco Greeff 385db9ef25 Cleanup FlatDb branching logic (re-use) 2018-09-03 20:02:14 +02:00
Travis CI 5f6e1a4990 [CI Skip] 0.29.17 2018-09-03 15:25:24 +00:00
Jaco Greeff 4655726c92 Cleanup variable assignments (FlatDb) 2018-09-03 17:21:00 +02:00
Travis CI d814449810 [CI Skip] 0.29.16 2018-09-03 15:02:26 +00:00
Jaco Greeff 177824d356 Expand FlatDb tests 2018-09-03 16:55:32 +02:00
Jaco Greeff 1f6d7bb118 Debug with correct position 2018-09-03 16:39:34 +02:00
Jaco Greeff a9ee22bf08 Cleanup Flat return types 2018-09-03 16:30:55 +02:00
Travis CI b280e3ee23 [CI Skip] 0.29.15 2018-09-03 14:05:36 +00:00
Jaco Greeff f32ea5b40f LRU for branches (96-bytes, more re-usable) (#212) 2018-09-03 16:01:15 +02:00
Travis CI 7372f2277e [CI Skip] 0.29.14 2018-09-03 13:11:28 +00:00
Jaco Greeff dfa1d25ff5 LRU for header entries (#211)
* LRU for header entries

* Update LRU cache size

* Update caching offsets (branch re-org)

* Re-skip test

* Mark LevelDb as unused, move
2018-09-03 15:07:07 +02:00
Travis CI 1b040f9360 [CI Skip] 0.29.13 2018-09-03 11:29:53 +00:00
Jaco Greeff fd216c4f05 Manage FlatDb index explosion (branch on nibbles) (#210) 2018-09-03 13:23:05 +02:00
Travis CI 7b6dd7f15c [CI Skip] 0.29.12 2018-09-03 10:15:30 +00:00
Jaco Greeff 67895df61b isCompressed option to database 2018-09-03 12:10:07 +02:00
Travis CI 8e4c2b066a [CI Skip] 0.29.11 2018-09-03 07:59:48 +00:00
Jaco Greeff 081246fa0c LevelDb string serialization of keys & values (#209)
* Remove RocksDb interface (or rather, mark as unused)

* LevelDb de/serializes to utf8
2018-09-03 09:56:12 +02:00
Travis CI 64946036a9 [CI Skip] 0.29.10 2018-09-02 18:23:17 +00:00
Jaco Greeff f9da5249ca Add RocksDb interface (#208)
* Add RocksDb interface

* Move binary deps to optional

* LevelDb skip

* Travis config for rocksdb

* Use pushd to change directory

* Don't forget to run yarn

* CFLAGS for gcc?

* Library should compress

* Update dependencies
2018-09-02 20:04:34 +02:00
Travis CI 334731f6d5 [CI Skip] 0.29.9 2018-09-02 09:19:36 +00:00
Jaco Greeff 5fdf2f4680 Create base directory only (not full with file) 2018-09-02 11:15:14 +02:00
Travis CI 10a22a69ec [CI Skip] 0.29.8 2018-09-02 09:04:36 +00:00
Jaco Greeff 3b6407f9b7 LevelDb interface update (#207)
* LevelDb interface update

* Update disk interfaces to base + name
2018-09-02 11:00:39 +02:00
Travis CI be8a097d6e [CI Skip] 0.29.7 2018-09-01 22:40:07 +00:00
Jaco Greeff e68e6581d2 Merge branch 'master' of github.com:polkadot-js/util 2018-09-02 00:35:56 +02:00
Jaco Greeff 9dc836d061 Swap default backing DB to FileFlat (interim) 2018-09-02 00:35:52 +02:00
Travis CI 312cda75d0 [CI Skip] 0.29.6 2018-09-01 22:25:06 +00:00
Jaco Greeff 5c9d894b5c Merge master 2018-09-02 00:20:04 +02:00
Jaco Greeff c6f26eb12e Remove trie-db-old 2018-09-02 00:15:13 +02:00
Travis CI 44f48b7ef6 [CI Skip] 0.29.5 2018-09-01 22:13:36 +00:00
Jaco Greeff fc054c42fc Update RLP test expectation 2018-09-02 00:01:50 +02:00
Jaco Greeff 32d48c9ece Merge branch 'master' of github.com:polkadot-js/util 2018-09-01 23:51:16 +02:00
Jaco Greeff d15172d0b1 Log RLP failures with full input 2018-09-01 23:51:12 +02:00
Travis CI 2aa5476d47 [CI Skip] 0.29.4 2018-09-01 21:48:31 +00:00
Jaco Greeff 3bcd45cb28 Add getRoot/setRoot to interface 2018-09-01 23:42:55 +02:00
Travis CI 333e19ff09 [CI Skip] 0.29.3 2018-09-01 21:36:02 +00:00
Jaco Greeff 1106579164 Export TriedDb type 2018-09-01 23:31:20 +02:00
Jaco Greeff fbbcc2d92d Fix Transaction open/close reversal 2018-09-01 23:28:34 +02:00
Travis CI cd782d7bdc [CI Skip] 0.29.2 2018-09-01 20:49:27 +00:00
Jaco Greeff 130163b74e Trie implements TxDb interface fully 2018-09-01 22:44:45 +02:00
Travis CI c59b3347fc [CI Skip] 0.29.1 2018-09-01 20:23:22 +00:00
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