It’s old, but as I’m searching for solutions on that subject I just found this: NIFs vs Jinterface - #3 by mpope