← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [Calculator]LocalStorage speed

 

On 03/11/2013 07:32 PM, Riccardo Ferrazzo 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.
> 

Hi,

you might want to offload the db commits to a WorkerScript:

http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-workerscript.html

As Dalius pointed out before it is the speed of the C in ACID
that is hampering the performance.

Happy hacking,
frank.

-- 
gplus.to/frankencode
frankencode@freenode



References