in reply to Re^2: Fast parsing for cypher block chaining
in thread Fast parsing for cypher block chaining
the 8 byte buffer would result in a lot of disk thrashing compared to 64k buffer
And there shouldn't be any disk trashing because read and write are buffered. The size of the buffer isn't 8 bytes as you claim, but rather a multiple of the size of a disc sector. The disk is not accessed every time read and write is called.
Because I thought read would be slower than sysread
sysread + syswrite + manual buffering in Perl
should be slower than
read + write + well tested buffering in C
Note that I didn't say my way is faster, just that it might be. Benchmark to find out which is faster on your system.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fast parsing for cypher block chaining
by fluffyvoidwarrior (Monk) on Mar 01, 2006 at 07:30 UTC | |
by ikegami (Patriarch) on Mar 01, 2006 at 15:18 UTC | |
by fluffyvoidwarrior (Monk) on Mar 01, 2006 at 17:20 UTC | |
by ikegami (Patriarch) on Mar 01, 2006 at 18:21 UTC | |
by Anonymous Monk on Mar 01, 2006 at 09:05 UTC | |
by fluffyvoidwarrior (Monk) on Mar 01, 2006 at 10:25 UTC |