Best practices for responsive scripts - persistence?
#1
I've been testing scripts on the ATV2 and, using it as a target platform, I find that many scripts are painfully slow. I understand that most scripts, for most actions, actually get reinitialized each time. I've read up on the persistence package in combination with a database/store of one kind or another in order to speed up scripts. Are there any other recommended practices to speed up scripts on the slower platforms?

Among other things, I'm thinking of using cron or equivalents to update a sqlite db on, let's say, an hourly basis, and not doing http requests from within the script. Of course, the data will be up to an hour old, but I'll that's something I can live with. Also, I was thinking about using threads or multiprocess within python to pull the information faster.
Reply

Logout Mark Read Team Forum Stats Members Help
Best practices for responsive scripts - persistence?0