Why fixed sized buffers are good
Apr. 19th, 2012 09:36 pmNote to self: when slurping binary data, it's better to use a fixed sized buffer than trying to read on a line by line basis — after all, what happens if your giant, multi-gigabyte file doesn't contain any line breaks? Heavy swapping, is what...