In an effort to standardize some of our performance gains across
FirefoxOS apps, we're compiling a list of patterns for performance
wins in both gecko and gaia. Since we've had lots of people looking at
performance at the moment, now seems like a good time to do this since
it should be fresh on everyone's mind.

If you have any general ideas about how to improve performance in apps
or platform, or stories of things that have worked for you in the
past, please post them here. We're looking for general procedures that
we can actually extract numbers from at a later point.

An example:

With contacts, we've found that the use of IndexedDB getAll() was
quite slow due to the number of records fetched was usually quite
large. This problem is now being fixed with cursors. However, for
mostly static sets of small records, getAll() is a fine solution, and
adding more cursors when they are not needed could slow things down.
What we'd like to have at the end of this is some solid numbers that
say what the upper bounds of record numbers should be for using getAll
versus switching to cursors. But for now, we just want the idea of
"getAll(), then cursors", then we'll move onto figure out the
specifics.

As we get some patterns hashed out and distilled on the mailing lists,
I'll be moving them over to be subtasks of the metabug 839300
(https://bugzilla.mozilla.org/show_bug.cgi?id=839300). Each subtask
will start with the pattern, then we'll work out ways to verify
specific numbers for the pattern.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to