2 ms·
For the first example: I would be actually very surprised if Elixirs way of using a writev() for that tiny string is faster than a regular write. Based on my pr
by Matthias247 6y ago
For the first example: I would be actually very surprised if Elixirs way of using a writev() for that tiny string is faster than a regular write. Based on my previous testing it was typically faster to write just a single chunk of data if the data was relatively small sized (e.g. < 10kB) - even if that meant copying data into a single buffer before.
Maybe one reason why Elixir doesn't do it could be that there are no cheap stack allocations, and it tries to avoid heap allocations at all costs?