← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [Calculator]LocalStorage speed

 

SQLite performance is more related to disk speed than actual operation.

Regards,
Dalius


On Mon, Mar 11, 2013 at 8:32 PM, Riccardo Ferrazzo
<f.riccardo87@xxxxxxxxx>wrote:

> Hi,
>
> We have included QtQuick.LocalStorage into the calculator application to
> provide data persistency. But i think that LocalStorage is not so fast (
> ~250ms for the insert operation on a dual core 4y old laptop ).
> I think that is better to manipulate the database only when the
> application is
> about to be closed or opened to avoid lags and slowdowns in the user
> interface, so i've moved every storage call at startup or shutdown.
>
> To test the actual speed of the LocalStorage APIs i've added a benchmark in
> the unit-tests subfolder of the calculator application, if someone has the
> knowledge needed to get that code and run it on a real device it will be
> good
> for developers.
>
> Current changes are still not merged, i'm talking about
> storage-improvements
> branch.
> --
> Riccardo Ferrazzo <f.riccardo87@xxxxxxxxx>
>

References