On Thu, Sep 24, 2020 at 12:24 PM Henry Rich <henryhr...@gmail.com> wrote:
> A list of bytes is internal to J and is a known type. A file is > foreign. If I want to send an npy datastream over a socket, why should > I have to write/read a file? > > The new primitive should deal with bytes rather than files for the same > reason (":) does. > > For information about J forums see http://www.jsoftware.com/forums.htm > I would suggest writing it to a file first, then send it via sendfile(2) system call. Staging giga bytes of data in memory doesn't make it transfer faster. Serialize the object in small pieces while sending is more appropriate from a industrial-quality software's point of view. -- Zhihao ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm