Bug #70490 [Com]: get_browser function is very slow

From: Date: Fri, 25 Sep 2020 04:14:24 +0000
Subject: Bug #70490 [Com]: get_browser function is very slow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229207@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70490&edit=1

 ID:                 70490
 Comment by:         cskhvinafin at gmail dot com
 Reported by:        webtech at mines-telecom dot fr
 Summary:            get_browser function is very slow
 Status:             Closed
 Type:               Bug
 Package:            Performance problem
 Operating System:   OS X 10.11.2
 PHP Version:        7.0.1
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

submit


Previous Comments:
------------------------------------------------------------------------
[2017-01-02 22:52:03] nikic@php.net

Resolved by https://github.com/php/php-src/pull/2242. This
should make get_browser() with a large browscap.ini faster by a factor of 100x or so.

------------------------------------------------------------------------
[2016-08-27 17:33:16] cmb@php.net

I just did some quick measurements with php_browscap.ini (~8.5 MB)
looking for one of the first and one of the last entries. Results
(in seconds):

PHP-5.6: 0.01 resp. 0.62
master:  0.01 resp. 2.98

So, indeed, there is a huge performance *regression*. This doesn't
appear to be related to ZendMM, because without it I get similar
numbers.

------------------------------------------------------------------------
[2016-06-22 12:40:47] cmb@php.net

> I was wrong : the performance are really bad even with last
> versions, […]

Well, then the ticket should be re-opened. :)

------------------------------------------------------------------------
[2016-06-21 06:59:11] webtech at mines-telecom dot fr

Hi,

I was wrong : the performance are really bad even with last versions, so I used php_browscap
(https://github.com/browscap/browscap-php).

Thanks for reply
Oli

------------------------------------------------------------------------
[2016-06-20 16:25:08] cmb@php.net

> It seems to be OK now.

Fine, closing.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=70490


--
Edit this bug report at https://bugs.php.net/bug.php?id=70490&edit=1


Thread (14 messages)

« previous php.bugs (#229207) next »