We should look into flushing the localStore.rdf file off the main thread on shutdown: http://people.mozilla.com/~bgirard/cleopatra/#report=1ecd7a421948995171a4bb483b7bcc8e1868cc57
I'm new to the topic, what would that mean? code wise, and in terms of "written file to disk before shutdown" etc. If I read the profile right, we're actually spending time in ::Flush, i.e., not in RDF itself, but only in the actual finish of the disk write? Is that true for various sizes of localstore.rdf?
@Axel: I believe that this is a general issue with flushing. Its duration is unbounded, regardless of the size of the file.