I have eventually realized that using standard file formats isn’t the best approach due to them having larger data size than was necessary. Therefore I have decided to transfer geometry in custom (very simple) form (just points + face vertices - packed with lowest possible size).
This works fine, I can construct numpy arrays from such data (coming trough TCP/IP DAT) very fast.
points = np.frombuffer(bytes, dtype=np.float32)
tris = np.frombuffer(bytes, dtype=np.int32)
However I am wondering what would be the fastest way of constructing actual geometry from such numpy arrays? I have tried Script SOP but it doesn’t perform well with large meshes. Same thing applies for approach where I have first written these arrays to DATs → which were then used to construct geometry in DAT to SOP. (This also didn’t perform well with more complex meshes.) I have thought this might be a perfect situation for Engine COMP, but since it doesn’t provide SOP output at the moment, I would still have to output DAT → convert it into SOP in main scene, which wouldn’t really help me in terms of performance.
I am not sure if Custom OP would help in this matter as I feel like I would still have to first write numpy arrays from python into something like DAT - which wouldn’t perform much better.
If someone knows some fast approach for getting these numpy arrays into actual geometry I would be thankful
P.S. I have moved this to General section as it is no longer a RFE.