{"id":226,"date":"2006-10-06T02:34:46","date_gmt":"2006-10-05T23:34:46","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=226"},"modified":"2006-10-06T02:35:40","modified_gmt":"2006-10-05T23:35:40","slug":"xtermsavelines-possible-problem","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2006\/10\/06\/xtermsavelines-possible-problem\/","title":{"rendered":"XTerm*saveLines possible problem ?"},"content":{"rendered":"<p>I just noticed a somewhat strange behaviour of xterm. When savelines option is set to a high number, say above 10000, the output of xterm is REALLY REALY slow.<\/p>\n<p>Check the following examples on maximized xterm windows:<br \/>\nFile: .xsession-errors 200074 (200kbytes)<br \/>\n<code><br \/>\n% wc -l .xsession-errors<br \/>\n4103 .xsession-errors<br \/>\n% xterm -v<br \/>\nXTerm(218)<br \/>\n% mrxvt --help<br \/>\nMrxvt v0.5.1<br \/>\nOptions: XPM,Jpeg,PNG,transparent,fade,tint,textshadow,utmp,menubar,XIM,multichar_languages,scrollbars=rxvt+NeXT+xterm+sgi+plain,<br \/>\nxft,Greek,frills,linespace,24bit,selectionscrolling,256colour,cursorBlink,pointerBlank,session management,Resources<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:   500<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 0.933 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:   1000<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 1.029 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  2500<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.01s system 0% cpu 1.286 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  5000<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 1.382 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  10000<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 1.969 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  11000<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 3.038 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  20000<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.00s system 0% cpu 8.341 total<br \/>\n<\/code><\/p>\n<p>XTerm*saveLines:  32767<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.01s system 0% cpu 12.798 total<br \/>\n<\/code><\/p>\n<p>On my faithfull mrxvt with 32767 buffer lines this gives me:<br \/>\nmrxvt*saveLines:                32767<br \/>\n<code>% time cat .xsession-errors<br \/>\ncat .xsession-errors  0.00s user 0.01s system 0% cpu 1.494 total<br \/>\n<\/code><\/p>\n<p>I hope you notice the difference&#8230;<\/p>\n<p>&#8220;bug&#8221; or &#8220;feature&#8221; ? who knows&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just noticed a somewhat strange behaviour of xterm. When savelines option is set to a high number, say above 10000, the output of xterm is REALLY REALY slow. Check the following examples on maximized xterm windows: File: .xsession-errors 200074 (200kbytes) % wc -l .xsession-errors 4103 .xsession-errors % xterm -v XTerm(218) % mrxvt &#8211;help Mrxvt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":5737,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}