summaryrefslogtreecommitdiff
path: root/src/core/utils/CharReader.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-08 16:12:01 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-08 16:12:01 +0100
commite7f97a4c8da44a696bb7e71b9dd54e8d271e24d0 (patch)
treea9b58f48cb4c1fd0114a3cb27b755633fe47fc6f /src/core/utils/CharReader.hpp
parent79903130b6240347743f191bb9b8d670524a300e (diff)
added more unit test for the new BufferClass, fixed a few bugs (merely inefficiencies -- no major problems found so far)
Diffstat (limited to 'src/core/utils/CharReader.hpp')
-rw-r--r--src/core/utils/CharReader.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/utils/CharReader.hpp b/src/core/utils/CharReader.hpp
index 4986d3e..23e88b7 100644
--- a/src/core/utils/CharReader.hpp
+++ b/src/core/utils/CharReader.hpp
@@ -63,9 +63,17 @@ public:
private:
/**
- * Number of bytes to request from the input stream.
+ * Number of bytes to request from the input stream. Set to 64 KiB because
+ * this seems to be a nice value for I/O operations according to multiple
+ * sources.
*/
- static constexpr size_t REQUEST_SIZE = 16 * 1024;
+ static constexpr size_t REQUEST_SIZE = 64 * 1024;
+
+ /**
+ * Number of bytes the buffer guarantees to be capable of looking back
+ * for extracting the current context.
+ */
+ static constexpr size_t LOOKBACK_SIZE = 128;
/**
* Type used internally to represent one chunk of memory.