File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ export const initCore = () => {
71
71
72
72
export const optimizeFunction = async ( fn : CallableFunction ) => {
73
73
if ( skipOptimization ) {
74
+ // warmup V8 symbols generation of the performance map
75
+ await fn ( ) ;
74
76
return ;
75
77
}
76
78
// Source: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#optimization-killers
@@ -82,6 +84,8 @@ export const optimizeFunction = async (fn: CallableFunction) => {
82
84
83
85
export const optimizeFunctionSync = ( fn : CallableFunction ) => {
84
86
if ( skipOptimization ) {
87
+ // warmup V8 symbols generation of the performance map
88
+ fn ( ) ;
85
89
return ;
86
90
}
87
91
// Source: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#optimization-killers
You can’t perform that action at this time.
0 commit comments