benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

BlobBuilder binary API is extremely slow in Chrome, but reasonably fast in Firefox w. Gears Plugin #974

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. create a large array of integers (e.g. 1 million)
2. call blobBuilder.append( myArrayOfIntegers )
3. observe how slow this operation is in Chrome and how fast this operation
is in Firefox
4. it is also very slow if blobBuilder is fed integers one-by-one, and not
as an array
5. blobBuilder.append( aLargeString) works reasonably fast

This is probably related to issue
http://code.google.com/p/gears/issues/detail?id=955 which also exhibits
Chrome-only performance issues.

What is the expected output? What do you see instead?

I expect reasonably "fast" performance when building files up to 10Megs
(e.g. images). Gears Plugin does it faster, and appending large strings is
faster, so why Chrome stumbles in this specific configuration?

What version of the product are you using? On what operating system?

Google Chrome 3.0.195.32 on Windows 7 64 bit.

Original issue reported on code.google.com by michael....@gmail.com on 12 Nov 2009 at 8:22