If memory is the concern, node V8 Engine has the mode "lite" mode:
https://v8.dev/blog/v8-lite
with that perhaps you could spawn node to all threads and do even better in terms performance/memory?
with that perhaps you could spawn node to all threads and do even better in terms performance/memory?