Closed Bug 701880 Opened 13 years ago Closed 12 years ago

dom storage does blocking io on main thread

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 627635

People

(Reporter: taras.mozilla, Assigned: taras.mozilla)

References

Details

(Whiteboard: [Snappy:P1])

This can cause significant browser stalls, needs to be fixed asap.
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
I added a MOZ_SQLITE_WEBAPPS_SYNC_MAIN_THREAD_MS telemetry probe and we fsync a lot from webpages.
Whiteboard: [Snappy:P1]
Depends on: 704933
Assignee: nobody → nfroyd
bug 704933 will(hopefully) take care of fsyncs
Summary: dom storage does fsyncs on main thread → dom storage does blocking io on main thread
Assignee: nfroyd → tglek
This bug is blocked on data from bug 704933 to see how much effort we need to sink into fixing this
IMPORTANT NOTE:
During next week or two I want to start porting the DOM storage back-end to LevelDB to see how we improve.  There are other important bugs to get fixed with that, not just performance issues.
Just got some numbers from about:telemetry addon on this(https://blog.mozilla.com/tglek/2011/12/13/slow-sql-tracking/).

I'm on a fast ssd.
1900ms to run INSERT OR REPLACE INTO webappsstore2 SELECT * FROM webappsstore2_temp WHERE scope = :scope;
Duping against bug 627635 since that's where the discussion and work is being done. Will carry over the blocking of bug 701872.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.