@typeberry/lib 0.8.0-0734dac → 0.8.0-98ac3de

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeberry/lib",
3
- "version": "0.8.0-0734dac",
3
+ "version": "0.8.0-98ac3de",
4
4
  "description": "Typeberry Library",
5
5
  "main": "./bin/lib/index.js",
6
6
  "types": "./bin/lib/index.d.ts",
@@ -8,9 +8,9 @@ export class LmdbRoot {
8
8
  constructor(dbPath, readOnly = false, ephemeral = false) {
9
9
  this.db = lmdb.open(dbPath, {
10
10
  // experimental options
11
- mapSize: 256 * 1024 * 1024 * 1024, // 256G max db size
12
- useWritemap: ephemeral,
13
- pageSize: 8192,
11
+ noMemInit: true,
12
+ remapChunks: true,
13
+ eventTurnBatching: false,
14
14
  // For ephemeral databases (e.g. the fuzz target, which wipes on every reset)
15
15
  // durability is pointless, so we skip fsync and skip compressing the large
16
16
  // per-block leaf blobs. Both are pure overhead there and dominate the cost.