History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4675
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Pablo Kang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Scrolling large text (100K) is very slow

Created: 06/Sep/07 06:31 PM   Updated: 31/Oct/07 02:52 PM
Component/s: LFC - Text
Affects Version/s: 4.0.3
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

File Attachments: 1. XML File data.xml (106 kb)
2. File LPP-4675.lzx (0.5 kb)
3. File LPP-4675_notes.ods (43 kb)
4. File LPP-4675a.lzx (0.5 kb)


Severity: Major
Fixed in Change#: 6,410
Runtime: N/A
Fix in hand: False


 Description  « Hide
Scrolling large text is very slow. Also, if a view contains large text, dragging or resizing the container view pegs CPU. We believe this is a regression.

<canvas debug="true">

    <dataset name="ds" request="true" src="data.xml"/>

    <!-- Scrolling is slow and pegs the CPU. try changing this view to a
         window. When the window is dragged or resized, the CPU is pegged. -->
    <view name="clipper" x="20" y="20" width="500" height="300" bgcolor="silver"
          clip="true" datapath="ds:/response/mail/msg">
        <text name="msg" datapath="body/text()" width="100%"
              multiline="true" />
        <scrollbar/>
    </view>

</canvas>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Pablo Kang - 06/Sep/07 06:32 PM
Data.xml is the data file to be used with the test case.

Max Carlson - 07/Sep/07 07:39 PM
I don't think this is a regression. The same test appears to run even slower in trunk.

Pablo Kang - 07/Sep/07 07:46 PM
Is it the same as in 3.4?

Steve O'Sullivan - 17/Oct/07 09:47 AM
Scrolling View Window - Scroll and resize
Macintosh Macintosh
Firefox Safari Firefox Safari
SWF7 fail pass SWF7 fail fail - resize
SWF8 pass pass SWF8 fail - resize fail - resize
DHTML pass pass DHTML fail - resize fail - resize

Windows Windows
Firefox IE7 Firefox IE7
SWF7 pass pass SWF7 pass pass
SWF8 pass pass SWF8 pass pass
DHTML pass pass DHTML Fails-resize pass

Tested in r6853

Steve O'Sullivan - 17/Oct/07 09:59 AM
Sorry for teh last post; I forgot about these fields eating white space.

Here are my notes in what I hope is an easier to read format:

Scrolling View - lpp-4675.lzx
Macintosh Firefox SWF7 fail
Macintosh Firefox SWF8 pass
Macintosh Firefox DHTML pass
Macintosh Safari SWF7 pass
Macintosh Safari SWF8 pass
Macintosh Safari DHTML pass

Windows Firefox SWF7 pass
Windows Firefox SWF8 pass
Windows Firefox DHTML pass
Windows IE7 SWF7 pass
Windows IE7 SWF8 pass
Windows IE7 DHTML pass


Window, scroll and resize - lpp-4675a.lzx
Macintosh Firefox SWF7 fail
Macintosh Firefox SWF8 fail-resize
Macintosh Firefox DHTML fail-resize
Macintosh Safari SWF7 fail-resize
Macintosh Safari SWF8 fail-resize
Macintosh Safari DHTML fail-resize

Windows Firefox SWF7 pass
Windows Firefox SWF8 pass
Windows Firefox DHTML fail-resize
Windows IE7 SWF7 pass
Windows IE7 SWF8 pass
Windows IE7 DHTML pass

Steve O'Sullivan - 17/Oct/07 03:28 PM
This is the actual test matrix that I went through. Added in the hopes that it adds clarity if needed.

Steve O'Sullivan - 17/Oct/07 03:35 PM
This is the final pass at results for this bug. My last results were not as clear as they should have been.

When windows mevement or resizing is characterized as 'slow' I mean that the window does not keep up with the mouse during its motion.

Slow scrolling refers to the impression that the window is scrolling by lines of text instead of pixels and that the lines are going by in increments of a second or so.

Tested in Openlaszlo 4.1.x r6877
Scrolling View - lpp-4675.lzx
Macintosh Firefox SWF7 slow scroll
Macintosh Firefox SWF8 -- good scroll
Macintosh Firefox DHTML -- good scroll
Macintosh Safari SWF7 -- good scroll
Macintosh Safari SWF8 -- good scroll
Macintosh Safari DHTML -- good scroll

Windows Firefox SWF7 -- good scroll
Windows Firefox SWF8 -- good scroll
Windows Firefox DHTML -- good scroll
Windows IE7 SWF7 -- good scroll
Windows IE7 SWF8 -- good scroll
Windows IE7 DHTML -- good scroll


Window, scroll and resize - lpp-4675a.lzx
Macintosh Firefox SWF7 -- VERY slow scroll, move and resize
Macintosh Firefox SWF8 -- good scroll, move, slow resize
Macintosh Firefox DHTML -- good scroll, move, slow resize
Macintosh Safari SWF7 -- good scroll, move, slow resize
Macintosh Safari SWF8 -- good scroll, move, slow resize
Macintosh Safari DHTML -- good scroll, move, slow resize

Windows Firefox SWF7 -- good scroll, move and resize
Windows Firefox SWF8 -- good scroll, move and resize
Windows Firefox DHTML -- good scroll and move, slow resize
Windows IE7 SWF7 -- good scroll, move, slow resize
Windows IE7 SWF8 -- good scroll, move, slow resize
Windows IE7 DHTML -- good scroll, move, slow resize


Tested in Openlaszlo 3.4.2 r5763
Scrolling View - lpp-4675.lzx
Macintosh Firefox SWF7 -- slow scroll
Macintosh Firefox SWF8 -- good scroll
Macintosh Firefox DHTML -- n/a
Macintosh Safari SWF7 -- slow scroll
Macintosh Safari SWF8 -- good scroll
Macintosh Safari DHTML -- n/a

Windows Firefox SWF7 -- good scroll
Windows Firefox SWF8 -- good scroll
Windows Firefox DHTML -- n/a
Windows IE7 SWF7 -- good scroll
Windows IE7 SWF8 -- good scroll
Windows IE7 DHTML -- n/a


Window, scroll and resize - lpp-4675a.lzx
Macintosh Firefox SWF7 -- scroll, resize and move slow
Macintosh Firefox SWF8 -- good scroll and move, slow resize
Macintosh Firefox DHTML -- n/a
Macintosh Safari SWF7 -- slow scroll, resize and move
Macintosh Safari SWF8 -- good scroll, resize, slow move
Macintosh Safari DHTML -- n/a

Windows Firefox SWF7 -- scroll, move and resize good
Windows Firefox SWF8 -- scroll, move and resize good
Windows Firefox DHTML -- n/a
Windows IE7 SWF7 -- scroll, move and resize good
Windows IE7 SWF8 -- scroll, move and resize good
Windows IE7 DHTML -- n/a

Steve O'Sullivan - 17/Oct/07 03:36 PM
I have noticed no pegging of the cpu during these tests on either platform.

Max Carlson - 19/Oct/07 02:33 PM
r6410 fixed this issue in swf8 and above. There's not much else we can do for swf7...

Steve O'Sullivan - 31/Oct/07 02:52 PM
Based on what Max says in his last comment, I am closing this bug. When reading over my notes, I do see that there is overall improvement in scrolling and window movement, except in the case of swf7 which cannot be tweaked any more.