[Konsole-devel] Review Request: Move the line index and isWrapped from a tmp file to memory

Kurt Hindenburg kurt.hindenburg at gmail.com
Tue Apr 10 14:08:49 UTC 2012



> On April 9, 2012, 6:15 a.m., Jekyll Wu wrote:
> > Well, the implementaion of scollback history is still like black magic to me, so do not take my comments too serious :)
> > 
> > For the first issue of moving line index and isWrapped into memory, is there some real and nice benefit ?  I mean moving them into memory does reduce the number of files on the disk, but the introduced inconsistency(some one disk, some in memory ) feels uneasy, especially when something goes wrong and we need to debug the code and data.
> > 
> > For the second issue of stop using map(), I think it is actually used now . For example, run "for i in $(seq 100); do dmesg; done" to generate enough scrollback, then press "Shift+Home" to jump to the very beginning, that map() will be called.
> >

Thanks for the feedback.  writes are slightly faster.  When I last checked I thought only the index file used map().  

At some time it would be nice to handle errors such as the "tmp" HD being full.  As it is , it is not easy to do that.


- Kurt


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104512/#review12261
-----------------------------------------------------------


On April 8, 2012, 5:01 p.m., Kurt Hindenburg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104512/
> -----------------------------------------------------------
> 
> (Updated April 8, 2012, 5:01 p.m.)
> 
> 
> Review request for Konsole.
> 
> 
> Description
> -------
> 
> Currently 'unlimited scrollback' uses 3 files: data, line index, isWrapped.  This patch removes the last two and keeps them in memory.  Also the map() is no longer used - I don't think it was actually ever called in practice.
> 
> Currently I have a #define for the new code.  The default is still the old code.
> 
> Perhaps I should use HistoryScrollFile2 instead of the #defines
> 
> 
> Diffs
> -----
> 
>   src/History.h 1a00a56 
>   src/History.cpp 6aefd51 
> 
> Diff: http://git.reviewboard.kde.org/r/104512/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Kurt Hindenburg
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20120410/7b43827d/attachment.html>


More information about the konsole-devel mailing list