TODO: Add entry about buffered, unbuffered, mmap for plugins
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 12 Aug 2013 18:20:08 +0000 (15:20 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 16 Aug 2013 18:05:11 +0000 (15:05 -0300)
TODO

diff --git a/TODO b/TODO
index 6b5408c..22c1c74 100644 (file)
--- a/TODO
+++ b/TODO
@@ -20,3 +20,9 @@
    UTF-8, probably it's impossible to know due the broad range of
    possible values, but maybe there is a way to give hints for latin,
    asian, western european charsets?
+
+ * Check/benchmark buffered vs unbuffered IO and possibly use mmap.
+   There are lots of code in plugin issuing one read(2) syscall for
+   small things like 4 bytes. Setting a proper buffer size (e.g. setvbuf)
+   and reading all at onece would be better performance-wise. Another option
+   is to write the common code for handling sigbus and use mmap instead.
\ No newline at end of file