Skip to content

Commit

Permalink
experiment: try out patching
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed Oct 17, 2024
1 parent 71a3028 commit dd0629f
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 3 deletions.
208 changes: 207 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@
"build:deno": "node --loader ts-node/esm resources/build-deno.ts",
"diff:npm": "node --loader ts-node/esm resources/diff-npm-package.ts",
"gitpublish:npm": "bash ./resources/gitpublish.sh npm npmDist",
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist",
"postinstall": "patch-package"
},
"devDependencies": {
"patch-package": "^8.0.0",
"@codspeed/tinybench-plugin": "^3.1.1",
"@codspeed/vitest-plugin": "^3.1.1",
"@docusaurus/core": "3.5.2",
Expand Down Expand Up @@ -89,7 +91,7 @@
"typedoc": "0.26.6",
"typescript": "5.4.5",
"url-loader": "4.1.1",
"vitest": "^2.1.3"
"vitest": "2.1.3"
},
"publishConfig": {
"tag": "alpha"
Expand Down
16 changes: 16 additions & 0 deletions patches/@codspeed+core+3.1.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/node_modules/@codspeed/core/dist/index.cjs.js b/node_modules/@codspeed/core/dist/index.cjs.js
index 1c40cda..4a5d588 100644
--- a/node_modules/@codspeed/core/dist/index.cjs.js
+++ b/node_modules/@codspeed/core/dist/index.cjs.js
@@ -26,7 +26,10 @@ const getV8Flags = () => {
"--no-opt",
"--predictable",
"--predictable-gc-schedule",
- "--interpreted-frames-native-stack"
+ "--interpreted-frames-native-stack",
+ // "--jitless",
+ '--no-concurrent-sweeping',
+ '--max-old-space-size=4096',
];
if (nodeVersionMajor < 18) {
flags.push("--no-randomize-hashes");

0 comments on commit dd0629f

Please sign in to comment.