-
Notifications
You must be signed in to change notification settings - Fork 5.6k
chore: optimize op_runtime_cpu_usage and op_runtime_memory_usage #29179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to move the buffer here outside to avoid allocate memory each time?
$ deno eval 'new Uint8Array(2 ** 32); console.log(Deno.memoryUsage())'
{
rss: 43925504,
heapTotal: 7340032,
heapUsed: 6022768,
external: 4298203118
} |
But it is not possible to use |
or maybe we need read |
#27217
Accept a
&mut [u32]
instead of serde tuple forop_runtime_cpu_usage
andop_runtime_memory_usage