3 ms·
> these libraries are type safe, not in this blog post: UnsafeAccess.unsafe UnsafeDirectByteBuffer.getAddress
by srtjstjsj 10y ago
> these libraries are type safe,
not in this blog post:
UnsafeAccess.unsafe
UnsafeDirectByteBuffer.getAddress
- kasey_junk 10y agoThose are wrapped in type safe methods though (all type safety cross process has this step regardless of language/lib). In nontrivial examples you tend to wrap more than Java longs but the techniques are the same. EDIT: I realize now that I was bringing a lot of context with me that is not obvious just from the blog post. Martin Thompson and Todd Montgomery who are mentioned in this post (and Richard Warburton who isn't). Are the main authors of the real-logic libraries, which are extremely well known in JVM performance circles. Aeron in particular is a great IPC lib. Other libraries that are similar and in the same circle are Open-HFT Chronicle and the LMAX Disruptor. For that matter the author of this blog post @nitsanw is pretty well known in that arena.
- slantedview 10y agoUnsafe is usually used for allocating memory directly rather than having it be managed by the runtime. This has nothing to do with type safety.