DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2046
Version: 1.3-feature


Fl_Text_Buffer uses a constant "gap size" whenever the internal text buffer
needs to be extended.

This constant gap size is currently defined as

#define PREFERRED_GAP_SIZE 1024

Although a buffer can be pre-allocated in the constructor, this doesn't
help much, because e.g. void Fl_Text_Buffer::text(const char *t) always
allocates a new text buffer with the exact size of the text +
PREFERRED_GAP_SIZE.

It has been discussed previously, that this can lead to many unnecessary
buffer reallocations, when a buffer is written to (and thus extended)
frequently. At least there should be a way to set the gap (or extend) size
dynamically by the user program.

Since this could not be done without breaking the ABI, this could not be
done for 1.1, but should be done now for FLTK 1.3.


Link: http://www.fltk.org/str.php?L2046
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to