Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 41 made on Wednesday April 28, 2010 at 08:21
Dominator
Long Time Member
Joined:
Posts:
August 2008
33
On April 28, 2010 at 06:22, buzz said...
It would introduce more objects, but another approach would be to use an associative array and look-up rather than "process" the return strings. ...trading more objects for fewer statements.

Has anyone compared these two techniques against each other?

Hi Buzz

I use this data driven approach in my design. I can't compare the two in this specific case but in general you use more memory in the data driven approach but execute faster... based on other project experience. The classic tradeoff.

I also believe that initial load of libraries and other code takes longer at activity startup.....but execution should be faster overall. I have no data to back this up in this specific case. 
 
Hey maybe based on the spidermonkey (see referrence above) in the system it actually slows down the data-driven approach!!!!

Cheers

Dominic 

 
Dominic


Hosting Services by ipHouse