GaretJax / phpbrowscap

Standalone replacement for php's native get_browser() function
MIT License
429 stars 69 forks source link

CPU intensive? #73

Open designosis opened 9 years ago

designosis commented 9 years ago

I'm testing phpbrowscap in an app that displays the last 10 site visitors and their browsers. But calling $browscap->getBrowser( $ua ); 10 times in a row brings my CPU usage (2 x 2.4 GHz) to 100%, choking the rest of the system. Am I missing something, or is this normal?

mimmi20 commented 9 years ago

Could you check this with the Project browscap/brpwscap-php as well? browscap/browscap-php is the successor of this project and better maintained.

Please also check the following things: