Bug #70490 [Csd->ReO]: get_browser function is very slow

From: Date: Wed, 22 Jun 2016 12:40:48 +0000
Subject: Bug #70490 [Csd->ReO]: get_browser function is very slow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201797@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
 Updated by:         cmb@php.net
 Reported by:        webtech at mines-telecom dot fr
 Summary:            get_browser function is very slow
-Status:             Closed
+Status:             Re-Opened
 Type:               Bug
 Package:            Performance problem
 Operating System:   OS X 10.11.2
 PHP Version:        7.0.1
-Assigned To:        cmb
+Assigned To:        
 Block user comment: N
 Private report:     N

 New Comment:

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

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


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2016-01-07 15:41:37] webtech at mines-telecom dot fr

New test :
PHP 7.0.1 : get_browser takes 1.5893349647522 sec

PHP 5.6.16 : get_browser takes 1.4182159900665 sec

It seems to be OK now.

Thanks

------------------------------------------------------------------------
[2015-11-13 13:43:13] webtech at mines-telecom dot fr

Sorry, I've made a mistake :
- the result on the last comment "get_browser takes 1.1309630870819 sec" was with PHP
5.6.15

With PHP7.0RC7 :
get_browser takes 4.4257979393005 sec

The PHP browscap file is php_browscap.ini (size: 21664 kb)

------------------------------------------------------------------------
[2015-11-13 13:34:08] webtech at mines-telecom dot fr

It's better with RC7 : get_browser takes 1.1309630870819 sec
but it's not 40 ms ;)

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


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 (#201797) next »