About

Ian Ozsvald picture

This is Ian Ozsvald's blog (@IanOzsvald), I'm an entrepreneurial geek, a Data Science/ML/NLP/AI consultant, author of O'Reilly's High Performance Python book, co-organiser of PyDataLondon, a Pythonista, co-founder of ShowMeDo and also a Londoner. Here's a little more about me.

High Performance Python book with O'Reilly

View Ian Ozsvald's profile on LinkedIn

ModelInsight Data Science Consultancy London Protecting your bits. Open Rights Group

Archive

3 June 2008 - 13:56TurboGears caching decorator released (thanks John!)

John has just published his TurboGears Caching Decorator.  We’ve been using it on ShowMeDo for the last 6 weeks – our cpu usage dropped from 60%+ on our shared box down to <30%.

Currently we cache the main pages for 1 hour, these ought to be extended to ‘forever’ since I have a good cache-expire key for these pages.  If I fixed this then I’d imagine our cpu usage would drop even further.

Getting it installed and running with the ‘cache using files’ version took about an hour.  Developing some custom keys (one for each type of page) took another few hours, we’ve had no bugs and we’re darn impressed.

John developed this decorator for his Chrss and our ShowMeDo – we’re in debt to John for digging us out of our performance woes.  Much obliged!

No Comments | Tags: Python, ShowMeDo

Comments are closed.