@typeberry/lib 0.7.4-2289aab → 0.7.4-618aa32

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.7.4-2289aab",
3
+ "version": "0.7.4-618aa32",
4
4
  "description": "Typeberry Library",
5
5
  "main": "./bin/lib/index.js",
6
6
  "types": "./bin/lib/index.d.ts",
@@ -15,7 +15,7 @@ export const DEFAULT_CONFIG = "default";
15
15
  export const NODE_DEFAULTS = {
16
16
  name: isBrowser() ? "browser" : os.hostname(),
17
17
  config: [DEFAULT_CONFIG],
18
- pvm: PvmBackend.BuiltIn,
18
+ pvm: PvmBackend.Ananas,
19
19
  };
20
20
  /** Chain spec chooser. */
21
21
  export var KnownChainSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/database-lmdb/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AAExD,uDAAuD;AACvD,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAErD,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,EAAE,SAAS,UAAQ;IAI9D,OAAO;IAcP,+CAA+C;IAC/C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK;IAI1B,gDAAgD;IAC1C,KAAK;CAGZ"}
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../../packages/jam/database-lmdb/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AAExD,uDAAuD;AACvD,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAErD,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,EAAE,SAAS,UAAQ;IAI9D,OAAO;IAkBP,+CAA+C;IAC/C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK;IAI1B,gDAAgD;IAC1C,KAAK;CAGZ"}
@@ -7,6 +7,10 @@ export class LmdbRoot {
7
7
  }
8
8
  constructor(dbPath, readOnly = false, ephemeral = false) {
9
9
  this.db = lmdb.open(dbPath, {
10
+ // experimental options
11
+ mapSize: 256 * 1024 * 1024 * 1024, // 256G max db size
12
+ useWritemap: true,
13
+ pageSize: 8192,
10
14
  // For ephemeral databases (e.g. the fuzz target, which wipes on every reset)
11
15
  // durability is pointless, so we skip fsync and skip compressing the large
12
16
  // per-block leaf blobs. Both are pure overhead there and dominate the cost.