Page 1 of 1

Memcache

PostPosted: Thu Sep 23, 2010 1:35 pm
by EricBrown
I have memcache enabled on my server. I think I saw a post somewhere with performance comparisons. Wondering if there will be future support soon? I'm working on a mobile ad server and I'm trying to get my response times down even further with minimal DB interaction sustaining 100QPS.

This works way faster and better than the original WURFL library on soureforge. Nice work!

Re: Memcache

PostPosted: Wed Oct 06, 2010 6:36 pm
by kamermans
Indeed, I have been working on a memcache layer for Tera-WURFL at the library level and the remote client level. Recent tests are showing detection rates over 30,000 QPS on my test box :) If you want to test it I can send you a prerelease.

Re: Memcache

PostPosted: Thu Oct 07, 2010 12:52 am
by EricBrown
How big of an update is it? Is it something that is simply a flag? Sounds very promising and I would be interested in testing. I'm seeing that loading the library for each request is taking between 40 and 60ms. Which is a bit much. The device detection is pretty quick once cached, but any improvement is welcomed. Great stuff.

Re: Memcache

PostPosted: Sat Oct 09, 2010 5:47 pm
by kamermans
I would definitely suggest using APC to cache the PHP opcode - this will greatly improve the class load time. The memcache version of Tera-WURFL is actually a wrapper for the main class - this allows you to update the main library and the memcache caching layer independently. I will be working on it tonight so perhaps I can send it to you sometime tomorrow. It's just a couple PHP files.

Re: Memcache

PostPosted: Sun Nov 21, 2010 1:33 pm
by EricBrown
I can see that 50% of our processing time is related to the Tera-Wurfl library and reading from and writing to the db. As we make improvements to our app, really eager to employ memcache.

Is there anyway I can implement a test?

Re: Memcache

PostPosted: Sun Dec 26, 2010 6:59 pm
by kamermans
Sorry if this is coming so late, but if you're still interested in this, just shoot me an email at stevekamerman [at] gmail [dot] com