Re: [PHP-DEV] offsetof and XtOffsetOf

2015-06-04 Thread Joe Watkins
Explained here: http://lxr.php.net/xref/PHP_TRUNK/main/php.h#415 On Fri, Jun 5, 2015 at 5:06 AM, Levi Morrison le...@php.net wrote: The macro offsetof is required by the C89 standard to be defined in stddef.h and remains in newer standards. The macro XtOffsetOf is non-standard that is as far

[PHP-DEV] offsetof and XtOffsetOf

2015-06-04 Thread Levi Morrison
The macro offsetof is required by the C89 standard to be defined in stddef.h and remains in newer standards. The macro XtOffsetOf is non-standard that is as far as I can tell a part of the X Toolkit Intrinsics or Xlib. Does anyone know the reasons why we are using the non-standard macro instead

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Yasuo Ohgaki
Hi Marc, On Thu, Jun 4, 2015 at 6:04 PM, Marc Bennewitz dev@mabe.berlin wrote: This one is not compatible with current code as you have to alias the PHP namespace to the root one before using full classes like \DateTime. Right. We are better to have PHP namespace for internal

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Sara Golemon
On Jun 4, 2015, at 10:00, Rowan Collins rowan.coll...@gmail.com wrote: : http://3v4l.org/l75kf HHVM's percentages are lower primarily because its for loop measure is much slower in absolute terms. At the risk of distracting from the central topic, I'd like to point out that HHVM's times

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Rowan Collins
Marc Bennewitz wrote on 04/06/2015 10:01: http://3v4l.org/eJK07 See the total amount of execution time recorded. If we really need pure execution time, then it should record for loop execution time with empty body. - incl. displaying the time for the loop: http://3v4l.org/1vZJI Percentages

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Marc Bennewitz
On 06/04/2015 10:01 AM, Yasuo Ohgaki wrote: Hi all, On Thu, Jun 4, 2015 at 12:07 AM, Sara Golemon poll...@php.net wrote: On Wed, Jun 3, 2015 at 1:33 AM, Dominic Grostate codekest...@googlemail.com wrote: Has there been any discussion or consideration towards migrating or at least aliasing

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Yasuo Ohgaki
Hi all, On Thu, Jun 4, 2015 at 12:07 AM, Sara Golemon poll...@php.net wrote: On Wed, Jun 3, 2015 at 1:33 AM, Dominic Grostate codekest...@googlemail.com wrote: Has there been any discussion or consideration towards migrating or at least aliasing all built in classes to a Php vendor

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Marc Bennewitz
On 06/04/2015 06:35 AM, Yasuo Ohgaki wrote: Hi Brian, On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon br...@moonspot.net wrote: This is a better representation of what you are trying to show. It removes all the magic call back stuff that could be adding to the slowness you are seeing. In