3 ms·
Definitely maybe. If your I/O list is a list of integers (the traditional Erlang string type), probably not. If your I/O list is a bunch of binaries you got fr
by toast0 4y ago
Definitely maybe. If your I/O list is a list of integers (the traditional Erlang string type), probably not.
If your I/O list is a bunch of binaries you got from here and there and you don't need to inspect them, just pass them along to another destination, then maybe yes. When BEAM writes an I/O list to an FD, it's going to use scatter/gather I/O and at no time does BEAM need to form a contiguous chunk of memory with all the data; what the OS does with that is up to the OS though.