|
|
|
|
|
by pjmlp
4312 days ago
|
|
Java and .NET offer GC free allocation for such purposes, via their interop APIs. This is also one area that is being improved in Java 9 (Arrays 2.0, Value Types and the new FFI). But as I mentioned, thus agreeing partially with you, pin/upin could be enough. |
|
You could easily implmement GC free allocation in Go and people do. Its not hard to write a library for explicit memory management:
1. mmap some memory 2. Write or port malloc and free like functions
This implementation could probably even use sync.Pool to good effect.