Re:Napa.js: A multi-threaded JavaScript runtime
by christophilus on Wednesday October 18, 2017 @04:08PM
(#15502487)
If I understand correctly, it looks like it allows some basic sharing of data without duplicating it in a bunch of heaps. It's not 100% shared memory, in that if several threads are accessing an object, that object will be duplicated in each thread, but it has a store mechanism which essentially can serve as an in-process cache that is shared across multiple threads.
[ Parent
| on HN ]
Re:Napa.js: A multi-threaded JavaScript runtime
by daiyip on Thursday October 19, 2017 @02:43AM
(#15505917)
That's correct. Think about a scenario that each worker needs to access a 1GB hash map. In node cluster, we have to load this 1GB map per process, but in the same process, all JS threads can access the map via an addon.