You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time we call NewVM to create a vm instance, as the struct defined, go runtime should apply for a space including the pre-allocated size of [2048]stack and [1024]frames, which may bring us unnecessary overhead in most cases when our script is simple.
I have a proposal to use sync.Pool to reduce such overhead. #413
Each time we call
NewVM
to create a vm instance, as the struct defined, go runtime should apply for a space including the pre-allocated size of [2048]stack and [1024]frames, which may bring us unnecessary overhead in most cases when our script is simple.I have a proposal to use
sync.Pool
to reduce such overhead. #413Benchmark Result
Benchmark Code
The text was updated successfully, but these errors were encountered: