Bug 120519

Summary: Poor performance for looping through ImageData
Product: WebKit Reporter: Kirill S. Dmitrenko <kdmitrenko>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal Keywords: Performance
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.7   
Attachments:
Description Flags
Code to reproduce the problem
none
Image for test case none

Kirill S. Dmitrenko
Reported 2013-08-30 02:59:58 PDT
Created attachment 210083 [details] Code to reproduce the problem Hi, everybody! I'm doing some experiments with canvas and web workers. For instance, I'm trying to implement clipped image copy from an image data object to another one with clipping by a triangle. It seems OK in FF and Chrome, but terrifyingly slow in Safari (both mobile and desktop). Here some measurements: Safari Version 6.1 (7537.59): ~400 ms Chrome 29.0.1547.62 && FF 23.0.1: ~ 4-6 ms Is there any way to overcome this situation and make this code faster under Safari?
Attachments
Code to reproduce the problem (2.96 KB, text/html)
2013-08-30 02:59 PDT, Kirill S. Dmitrenko
no flags
Image for test case (238.15 KB, image/jpeg)
2013-08-30 03:02 PDT, Kirill S. Dmitrenko
no flags
Kirill S. Dmitrenko
Comment 1 2013-08-30 03:02:37 PDT
Created attachment 210084 [details] Image for test case
Kirill S. Dmitrenko
Comment 2 2013-08-30 06:34:02 PDT
Turned out such performance is a side effect from debugger.
Note You need to log in before you can comment on or make changes to this bug.