Re: [PHP-DEV] nameof feature

2015-06-03 Thread Alexandr Marchenko
Here is example of how it works in C# 6: http://video.ch9.ms/ch9/4419/cea3b3e4-715a-4279-b161-5962e4464419/VSToolboxCsharpVS2015withMadsTorgersen.mp4 time from 19:40 to 22:00 They demonstrate nameof on simple variable but it can be applied to anything, especially I’am thinking about callable

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Yasuo Ohgaki
On Thu, Jun 4, 2015 at 1:35 PM, Yasuo Ohgaki wrote: > On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon 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 addition, it does no

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Yasuo Ohgaki
Hi Brian, On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon 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 addition, it does not create a new object on every call for the > obj

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Sara Golemon
On Wed, Jun 3, 2015 at 3:33 PM, Brian Moon wrote: > On 6/2/15 22:30 , Bishop Bettini wrote: >> I've measured the overhead for method calls in a variety of environments >> (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l >> . >> >> Some observations. Fir

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Brian Moon
On 6/2/15 22:30 , Bishop Bettini wrote: Hi! I've measured the overhead for method calls in a variety of environments (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l . Some observations. First, as expected, direct calls are faster than static object

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

2015-06-03 Thread Sara Golemon
On Wed, Jun 3, 2015 at 1:33 AM, Dominic Grostate wrote: > Has there been any discussion or consideration towards migrating or at > least aliasing all built in classes to a Php vendor namespace? > Not any that's led to a consensus. Personally, I like the idea of moving EVERYTHING to PHP\ at once a

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Julien Pauli
On Wed, Jun 3, 2015 at 4:29 PM, Sara Golemon wrote: > > > On Jun 3, 2015, at 00:50, Michael Wallner wrote: > > > >>> On 03 06 2015, at 05:30, Bishop Bettini wrote: > >> > >> My question though is on relative times. Method call overhead is > >> consistently 50% to 150% over a direct call. Is m

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Sara Golemon
> On Jun 3, 2015, at 00:50, Michael Wallner wrote: > >>> On 03 06 2015, at 05:30, Bishop Bettini wrote: >> >> My question though is on relative times. Method call overhead is >> consistently 50% to 150% over a direct call. Is my experiment invalid, or >> is this overhead expected? Is the ov

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

2015-06-03 Thread Rowan Collins
Dominic Grostate wrote on 03/06/2015 09:33: Hi, I couldn't find any information on this elsewhere, or perhaps I didn't look hard enough. Its been bugging me a while though so I though I would ask. Has there been any discussion or consideration towards migrating or at least aliasing all built i

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

2015-06-03 Thread Dominic Grostate
Yes, however for consistency, I personally like the idea of using a longer namespace over prefixed class names. The most relevant example being the SPL data structures. For instance SplStack might come under Php\Collection\Stack. As far as I can tell there is a fair amount of fear of adding new

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

2015-06-03 Thread Lorenzo Fontana
AFAIK the PHP namespace is the root one. Lorenzo 2015-06-03 10:33 GMT+02:00 Dominic Grostate : > Hi, > > I couldn't find any information on this elsewhere, or perhaps I didn't look > hard enough. Its been bugging me a while though so I though I would ask. > > Has there been any discussion or co

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

2015-06-03 Thread Dominic Grostate
Hi, I couldn't find any information on this elsewhere, or perhaps I didn't look hard enough. Its been bugging me a while though so I though I would ask. Has there been any discussion or consideration towards migrating or at least aliasing all built in classes to a Php vendor namespace? For aest

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Michael Wallner
> On 03 06 2015, at 05:30, Bishop Bettini wrote: > My question though is on relative times. Method call overhead is > consistently 50% to 150% over a direct call. Is my experiment invalid, or > is this overhead expected? Is the overhead in the allocation, > deallocation, GC? I’suggest you us