aboutsummaryrefslogtreecommitdiffhomepage
path: root/TODO
diff options
context:
space:
mode:
Diffstat (limited to 'TODO')
-rw-r--r--TODO15
1 files changed, 15 insertions, 0 deletions
diff --git a/TODO b/TODO
index e32bf31..d9418a6 100644
--- a/TODO
+++ b/TODO
@@ -234,6 +234,21 @@ Features:
Macros may retrieve the code and string of the last error.
Optimizations:
+ * The Linux-specific memory limiting using mallinfo() is
+ very slow (50% to 150% slower than the fallback implementation
+ measured in batch mode).
+ The fallback implementation does not come with much of a
+ runtime penalty.
+ Still I've found no faster way of measuring the process heap.
+ A soft resource limit would be ideal but unfortunately,
+ it lets malloc() return NULL and we're not in control of all
+ the mallocs, so glib could abort before we have a chance to
+ react on it.
+ Since the slow-down affects interactive mode as well, disabling
+ limiting in batch mode is merely a workaround.
+ Perhaps Linux should simply use the fallback limiting as well
+ (or support this via a configure option).
+ On Windows (2000), the overhead is approx. the same.
* Add G_UNLIKELY to all error throws.
* Instead of using RTTI to implement the immediate editing command
behaviours in Cmdline::process_edit_cmd() depending on the current