@dra2020/baseclient 1.0.20 → 1.0.21
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/dist/baseclient.js +3 -2
- package/dist/baseclient.js.map +1 -1
- package/dist/util/bintrie.d.ts +1 -0
- package/lib/util/bintrie.ts +4 -2
- package/package.json +1 -1
package/dist/util/bintrie.d.ts
CHANGED
package/lib/util/bintrie.ts
CHANGED
|
@@ -348,8 +348,9 @@ export class BinTrie
|
|
|
348
348
|
export interface BinTrieOptions
|
|
349
349
|
{
|
|
350
350
|
dedup?: boolean,
|
|
351
|
+
verbose?: boolean,
|
|
351
352
|
}
|
|
352
|
-
let DefaultOptions: BinTrieOptions = { dedup: true };
|
|
353
|
+
let DefaultOptions: BinTrieOptions = { dedup: true, verbose: false };
|
|
353
354
|
|
|
354
355
|
export class BinTrieBuilder
|
|
355
356
|
{
|
|
@@ -607,7 +608,8 @@ export class BinTrieBuilder
|
|
|
607
608
|
}
|
|
608
609
|
});
|
|
609
610
|
|
|
610
|
-
|
|
611
|
+
if (btb.options.verbose)
|
|
612
|
+
console.log(`bintrie: total size: ${btb.u8.length}, value table size: ${btb.vtb.u8.length}`);
|
|
611
613
|
|
|
612
614
|
return bt;
|
|
613
615
|
}
|