JavaCL: less allocs, more reusable ptrs