[haiku-bugs] Re: [Haiku] #8007: [app_server] fully unresponsive when resizing window of big textfile

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Thu, 01 Mar 2012 18:59:29 -0000

#8007: [app_server] fully unresponsive when resizing window of big textfile
-----------------------------+----------------------------
   Reporter:  ttcoder        |      Owner:  axeld
       Type:  bug            |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:  7882, 8136
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by anevilyak):

 Replying to [comment:31 leavengood]:
 > While again the core problem in this issue should be fixed, I would
 think it should be possible to optimize the StyledEdit resizing somewhat.
 For example if only the height changes, there is no need to recalculate
 the layout, just show more text in the view. And in the case where the
 width changes, to update what is shown it only really needs to recalculate
 the layout from the start of the document to the view position (though I
 guess the total height needs to be known to properly size the scroll
 thumb.) But the whole thing should probably be done in a lower priority
 background thread either way.
 >

 FWIW, none of this is StyledEdit-specific. That app is more or less a thin
 wrapper around BTextView, which is where all of the aforementioned
 optimization issues lie.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8007#comment:32>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: