3 ms·
the entire low latency sector is will be stuck on java 8 until they figure out what they're going to do with Unsafe which may be forever
by blibble 4y ago
the entire low latency sector is will be stuck on java 8 until they figure out what they're going to do with Unsafe
which may be forever
- pjmlp 4y agoJNI exists.
- SpaghettiCthulu 4y agoJNI is known to be slow
- pjmlp 4y agoMarshaling is slow, the trick is not to have chatty interfaces.
- blibble 4y agousing JNI would turn 1 intrinsic'ed instruction into about 800 which might be an acceptable tradeoff if you're shovelling JSON to a websocket not so good if you're a smart order router trying to hit a level that will be gone in under a microsecond
- ptx 4y agoWon't Project Panama solve this? One of the goals in JEP 424 is to provide performance competitive with sun.misc.Unsafe so that (it says later in the document) it can eventually be removed.