Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (#51)
Browse files Browse the repository at this point in the history
* perf: use `node:` prefix to bypass require.cache call for builtins

See fastify/fastify-static#407

* chore: fix linting errors
  • Loading branch information
Fdawgs authored Sep 12, 2023
1 parent 32b9e66 commit b49428c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion benchmark/compiling.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Globals for benchmark.js
*/
Expand Down
6 changes: 3 additions & 3 deletions benchmark/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs')
const path = require('path')
const spawn = require('child_process').spawn
const fs = require('node:fs')
const path = require('node:path')
const spawn = require('node:child_process').spawn

const exe = process.argv[0]
const cwd = process.cwd()
Expand Down
1 change: 0 additions & 1 deletion benchmark/kind.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Globals for benchmark.js
*/
Expand Down
1 change: 0 additions & 1 deletion benchmark/matching.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Globals for benchmark.js
*/
Expand Down

0 comments on commit b49428c

Please sign in to comment.