Differences From Artifact [4427169ba3]:
- File
src/OFSeekableStream.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 1369) [annotate] [blame] [check-ins using] [more...]
To Artifact [fd840df49d]:
- File
src/OFSeekableStream.m
— part of check-in
[a7d66e7ab2]
at
2016-05-05 19:54:55
on branch trunk
— OFStream: Cache small reads to reduce syscalls
In some situations, this is 50x faster. (user: js, size: 1395) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
50 51 52 53 54 55 56 | { if (whence == SEEK_CUR) offset -= _readBufferLength; offset = [self lowlevelSeekToOffset: offset whence: whence]; | | | | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | { if (whence == SEEK_CUR) offset -= _readBufferLength; offset = [self lowlevelSeekToOffset: offset whence: whence]; [self freeMemory: _readBufferMemory]; _readBuffer = _readBufferMemory = NULL; _readBufferLength = 0; return offset; } @end |