Commit Graph
505 Commits
Author SHA1 Message Date
Travis CI d1ba256d7e [CI Skip] 0.29.27 2018-09-06 20:34:17 +00:00
Jaco Greeff ea8ff283fc Rename snapshot method 2018-09-06 22:28:48 +02:00
Jaco Greeff 018518af1c Merge branch 'master' of github.com:polkadot-js/util 2018-09-06 22:15:16 +02:00
Jaco Greeff 0707a238d5 Export rename(base, file) on BaseDb 2018-09-06 22:15:11 +02:00
Travis CI 376d71cf02 [CI Skip] 0.29.26 2018-09-06 19:34:03 +00:00
Jaco Greeff 72bb79fdbd Show snapshot completion info 2018-09-06 21:30:10 +02:00
Travis CI 6e327019df [CI Skip] 0.29.25 2018-09-06 19:14:30 +00:00
Jaco Greeff 6bb0f77c09 Return key count from snapshot creation 2018-09-06 21:09:32 +02:00
Travis CI eec2b34b83 [CI Skip] 0.29.24 2018-09-06 19:02:05 +00:00
Jaco Greeff 56f80aa79b Update (linting) 2018-09-06 20:58:17 +02:00
Jaco Greeff d08f7832fd Write snapshot directly to destination Trie 2018-09-06 20:37:39 +02:00
Travis CI adbf7e7c13 [CI Skip] 0.29.23 2018-09-06 16:08:04 +00:00
Jaco Greeff 1149d8836b Cleanup/speedup snapshot creation entries 2018-09-06 18:03:57 +02:00
Jaco Greeff 0369450ff1 Expose snapshot methods in type 2018-09-06 17:52:20 +02:00
Travis CI 052cdbcd33 [CI Skip] 0.29.22 2018-09-06 15:27:33 +00:00
Jaco Greeff cc7227846e Add ability for the Trie to snapshot current root (#214)
* Add ability for the Trie to snapshot current root

* Allow ability to empty/drop database
2018-09-06 17:22:30 +02:00
Travis CI 11649b492a [CI Skip] 0.29.21 2018-09-05 10:03:18 +00:00
Jaco Greeff ca6934b6cf Bump LRU sizes 2018-09-05 11:57:54 +02:00
Travis CI 0e8587f977 [CI Skip] 0.29.20 2018-09-04 20:59:01 +00:00
Jaco Greeff 5120b95bc8 FlatDb code refactor & optimisations (#213)
* Move Compactor into own class

* Combine multiple buffer writes

* Skip failing CI test (again)

* Clean up value > current.length

* Test code linting
2018-09-04 22:54:13 +02:00
Travis CI fe372bae6d [CI Skip] 0.29.19 2018-09-04 08:57:49 +00:00
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