← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [Calculator]LocalStorage speed

 

Storing only when app is closing is not very smart idea. Users may lost all their data in case app crashes.

On 11. Mar 2013, at 19:32 , 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>
> 
> -- 
> Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
> Post to     : ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
> More help   : https://help.launchpad.net/ListHelp



References