We are using get_browser() in PHP using php_browscap.ini but performance is horrible. We pass 100 or so user-agents into get_browser() per page and it takes over 30 seconds to render the page. We need a performant solution, without storing the actual get_browser() results persistently (we only want to store user agents).
We already use memcached, is there a way we can alter get_browser() to cache results, or load the entire php_browscap.ini into memcached.
I havn't used the browscap-php library, but the the usage is highly recommend by the Browser Capabilities Project. http://browscap.org/
The libary on GitHub should improve the performance.