search for: readit

Displaying 1 result from an estimated 1 matches for "readit".

Did you mean: readin
2013 Jan 10
0
[PATCH] in.tftpd: Allow chdir w/o root, improve I/O
...rough AFS. I changed the read() to an fread() (to take advantage of stdio buffering), and added a setvbuf() call after the file is fdopen()ed to set a 64kB buffer. The server now reads files in 64kB chunks, according to strace, and throughput is much improved. (Originally, I was going to modify readit()/read_ahead() to use multiple buffers instead of just two, but this code is intertwined with the server mechanics in a way that makes leaning on stdio a *lot* simpler.) Lastly, there were a couple of minor nits: the "toplevel" variable being defined twice, and a trailing comma in th...