perf: use available system memory for v8 isolate memory limit (#26868)

Instead of using the default 1.4Gb limit (which was meant for browser
tabs) configure V8 to
set the heap limit to the amount of memory available in the system.

Closes https://github.com/denoland/deno/issues/23424
Closes https://github.com/denoland/deno/issues/26435
Closes https://github.com/denoland/deno/issues/21226
This commit is contained in:
Bartek Iwańczuk 2024-11-15 09:33:03 +00:00 committed by GitHub
parent dcc75d5685
commit c9baf3849f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 3 deletions

View file

@ -35,6 +35,7 @@ pub mod js;
pub mod ops;
pub mod permissions;
pub mod snapshot;
pub mod sys_info;
pub mod tokio_util;
pub mod web_worker;
pub mod worker;