[Webkit-unassigned] [Bug 280601] New: ImageBitmaps transferring between threads is very slow in Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 30 01:23:04 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=280601

            Bug ID: 280601
           Summary: ImageBitmaps transferring between threads is very slow
                    in Safari
           Product: WebKit
           Version: Safari 17
          Hardware: Mac (Intel)
                OS: macOS 15
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: honyaapp at googlemail.com
                CC: sabouhallawa at apple.com

Hello,

There is big problem with ImageBitmap transferring between threads.
In WebKit Safari browser this operation is extremely slow (both iOS and MacOS), which make Workers impossible to use for us.

The code example look like this:

this.jobWorker.postMessage(
{
  task: "run",
  image: imageBitmap,
}, [imageBitmap])

This operation takes 0.001ms in Chrome (in all browsers: Windows, MacOS, iOS...)
But takes 50ms in Safari.

The problem is i don't know any other methods to transfer image data between threads. So for us this is critical blocker!
Also not sure why this is blocking operation in Safari. Normally it should just set detached state on transferred Image Bitmap object. And this is definitely shouldn't take 50ms.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240930/11fe4017/attachment.htm>


More information about the webkit-unassigned mailing list