Jay Berkenbilt
|
bcea54fcaa
|
Revert removal of unreadCh change for performance
Turns out unreadCh is much more efficient than seek(-1, SEEK_CUR).
Update comments and code to reflect this.
|
2020-10-27 11:57:48 -04:00 |
|
Jay Berkenbilt
|
bed165c9fc
|
Stop using InputSource::unreadCh
|
2020-10-18 07:43:05 -04:00 |
|
Jay Berkenbilt
|
18b34a5649
|
InputSource::unreadCh -- only unread most recently read character
This is all that ever worked. The test suite was trying to do
something different from ClosedFileInputSource.
|
2020-10-16 17:15:39 -04:00 |
|
Jay Berkenbilt
|
4f4c627b77
|
ClosedFileInputSource: add method to keep file open
During periods of intensive operation on a specific file, this method
can reduce the overhead of repeated open/close operations.
|
2018-08-04 19:52:46 -04:00 |
|
Jay Berkenbilt
|
3fe5236d54
|
Fix typo
|
2018-06-22 19:28:18 -04:00 |
|
Jay Berkenbilt
|
c543c1e4e5
|
Windows test workaround
|
2018-06-22 17:19:34 -04:00 |
|
Jay Berkenbilt
|
4ccc8b1a44
|
Add ClosedFileInputSource
ClosedFileInputSource is an input source that keeps the file closed
when not reading it.
|
2018-06-22 12:52:45 -04:00 |
|