Skip to content

Commit

Permalink
[JavaScript] enhancement performance and bugfix (#811)
Browse files Browse the repository at this point in the history
* bugfix: #756
  • Loading branch information
theweipeng authored Aug 1, 2023
1 parent 6f665b5 commit 2ff9ff3
Show file tree
Hide file tree
Showing 37 changed files with 1,215 additions and 6,748 deletions.
1 change: 1 addition & 0 deletions javascript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./package-lock.json
1 change: 1 addition & 0 deletions javascript/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
6 changes: 0 additions & 6 deletions javascript/.vscode/settings.json

This file was deleted.

4 changes: 2 additions & 2 deletions javascript/benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
const Fury = require("@furyjs/fury");
const utils = require("../test/util");
const hps = require('@furyjs/hps');
const fury = new Fury.default({ hps });
const fury = new Fury.default({ hps, refTracking: false, useLatin1: true, useSliceString: true });
const Benchmark = require("benchmark");
const protobuf = require("protobufjs");
const path = require('path');
Expand Down Expand Up @@ -140,7 +140,7 @@ async function start() {
{
console.log('sample json size: ', `${(sampleJson.length / 1000).toFixed()}k`);
assert(JSON.stringify(protobufDecode(protobufBf)) === sampleJson);
assert(JSON.stringify(deserialize(furyAb)) === sampleJson);
assert.deepEqual(deserialize(furyAb), sample);
}
let result = {
fury: {
Expand Down
Loading

0 comments on commit 2ff9ff3

Please sign in to comment.