File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { checkV8Flags } from "./introspection" ;
2
2
import { MongoMeasurement } from "./mongoMeasurement" ;
3
3
import native_core from "./native_core" ;
4
- import { initOptimization } from "./optimization" ;
5
4
6
5
declare const __VERSION__ : string ;
7
6
@@ -12,7 +11,6 @@ export const isBound = native_core.isBound;
12
11
export const mongoMeasurement = new MongoMeasurement ( ) ;
13
12
14
13
export const setupCore = ( ) => {
15
- initOptimization ( ) ;
16
14
native_core . Measurement . stopInstrumentation (
17
15
`Metadata: codspeed-node ${ __VERSION__ } `
18
16
) ;
Original file line number Diff line number Diff line change 1
- export const initOptimization = ( ) => {
2
- // eslint-disable-next-line @typescript-eslint/no-var-requires
3
- require ( "v8" ) . setFlagsFromString ( "--allow-natives-syntax" ) ;
4
- } ;
5
-
6
1
export const optimizeFunction = async ( fn : CallableFunction ) => {
7
2
// Source: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#optimization-killers
8
3
// a total of 7 calls seems to be the sweet spot
You can’t perform that action at this time.
0 commit comments