3 ms·
Not really, no. Even though Graal compiles to native code, these JVM based languages are all based on two ideas: 1. there will be a GC to manage memory 2. memo
by voodootrucker 7y ago
Not really, no. Even though Graal compiles to native code, these JVM based languages are all based on two ideas:
1. there will be a GC to manage memory
2. memory will be managed
The GC slows things down, so spark tries to work around this by accessing "off heap" memory (which really just means off the JVM's heap and on the OS'). So you end up getting OOM errors if you give to little to the JVM or if you give too little to the OS. It's a hacky balancing act to get native access to memory, which comes for free with rust.