summaryrefslogtreecommitdiff
path: root/doc/en/autogen
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-08-10 17:18:12 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-08-10 17:18:12 +0200
commit6714d6fc820e56ea53cd67e604a0928e7a974e84 (patch)
treedba649c6bc5bc2c0135c1823112809db602bfc80 /doc/en/autogen
parenta5cbfdf7fd38a14be47c898a66aac5737bbb1c4b (diff)
downloadweechat-6714d6fc820e56ea53cd67e604a0928e7a974e84.zip
core: optimize the removal of lines in buffers (a lot faster to clear/close buffers with lot of lines)
The update of variables "buffer_max_length" and "prefix_max_length" in struct t_gui_lines is now delayed and made during the main refresh (in main loop). For a buffer with 50K lines, it is up to 3300 times faster to clear/close it. For a buffer with 4096 lines (default limit), it is up to 120 times faster.
Diffstat (limited to 'doc/en/autogen')
-rw-r--r--doc/en/autogen/plugin_api/hdata.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt
index e795d0732..a7ad11646 100644
--- a/doc/en/autogen/plugin_api/hdata.txt
+++ b/doc/en/autogen/plugin_api/hdata.txt
@@ -786,7 +786,9 @@
'first_line_not_read' (integer) +
'lines_hidden' (integer) +
'buffer_max_length' (integer) +
- 'prefix_max_length' (integer) |
+ 'buffer_max_length_refresh' (integer) +
+ 'prefix_max_length' (integer) +
+ 'prefix_max_length_refresh' (integer) |
|
-