Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU intensive? #73

Open
designosis opened this issue Dec 18, 2014 · 1 comment
Open

CPU intensive? #73

designosis opened this issue Dec 18, 2014 · 1 comment

Comments

@designosis
Copy link

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
Copy link

mimmi20 commented Dec 18, 2014

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:

  • You need write access to the cache dir
  • You need a lot of Memory to create the cache (>= 256MB)
  • Is there any error in your error log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants