Hello,
I'm developing an application in WRT and I have a problem.

This small app only saves text in the phone database (Preferences).

In N5800 with 20.2.010 firmware, it takes:
Writing 17 ms.
Reading 15 ms.
Erasing 16 ms.

Now, in the same phone, but 51.2.007 firmware, process times are increased incredibly.
Writing 106835 ms.
Reading 15 ms.
Erasing 107363 ms.

and on an N5800, with 40.0.005 firmware:
Writing 17 ms
Reading 15 ms
Erasing 98261 ms

I also tried with RDA, and process times are similar to what's stated above for 40.0.005 and 51.2.007

In short, the newer the firmware is, the longer it takes to complete the process.

What do you think that's failing?

I include the code I used to perform this testing.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Basic Symbian Web Runtime Widget</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<body onload="init();">
	</body>
</html>
Javascript:
Code:
function init(){
	D = new Date();
	tiempoInit = D.getTime();
	for (i=0; i < 100 ; i ++){
		saveRecord("R"+i,"Lorem Ipsum is simply dummy text.")
	} 
	D = new Date();
	tiempoFin  = D.getTime() - tiempoInit;
	
	alert("Writing :" + tiempoFin );
	D = new Date();
	tiempoInit = D.getTime();

	for (i=0; i < 100 ; i ++){
		readRecord("R"+i,null);
	} 

	D = new Date();
	tiempoFin  = D.getTime() - tiempoInit;
	alert("Reading :" + tiempoFin );
	
	D = new Date();
	tiempoInit = D.getTime();

	for (i=0; i < 100 ; i ++){
		saveRecord("R"+i,null)
	} 

	D = new Date();
	tiempoFin  = D.getTime() - tiempoInit;
	alert("Erasing :" + tiempoFin );
	
}



function saveRecord(recId, data){
	try {
		return widget.setPreferenceForKey(data, recId);
	}catch(e){
		console.debug(e);
	}
}

function readRecord(recId){
	try {
		return widget.preferenceForKey(recId);
	}catch(e){
		return null;
	}
}