Den 23. juli 2015 10:16, skrev Jean-Marc Lasgouttes:
Except for #9691.
The big remaining problem though is that I rely on a
map<docstring,int> for caching word widths and this will probably fill
up with long editing sessions. In the original rowpainter2 code, there
were only words in the cache, and the number of words in a language is
much less than the number of string that can apear in a row...
There are many strings - but instead the number of rows in a document is
limited. There is one entry per screen line, right? (Assuming all are
indeed different.) Even a 1000-page book will have a very limited number
of screen lines - compared to the size of computer memory.
And this grows as the user resizes the window or edit text - but it'd
take a long time to get into memory performance problems. I rarely have
editing sessions lasting more than a week. I sometimes leaves an editor
open overnight, but there is no point over a weekend.
Helge Hafting