I don't think this is a safe optimization. In the following case it would
output 'b' and not 'a' which is the correct result:
a.php:
b.php:
It is certainly not likely for a constant to be defined twice but PHP
currently just issues a notice and continues with the first constant value.
On Thu
While it might seem like a good idea to put something like this into
APC it really just creates more problems than it is worth. I belive it
was removed for that very reason; because it was making it difficult
to distinguish opcode cache errors from optimizer errors.
There was an attempt to move th
PHP is not the bottleneck of your
program and thus optimization wont get you too much.
- Graham Kelly
On Wed, Jan 13, 2010 at 8:51 AM, Dave Ingram wrote:
> mathieu.suen wrote:
>
>> Sebastian Bergmann wrote:
>>
>>> Am 13.01.2010 12:18, schrieb mathieu.suen:
>>>
Hi,
It sounds like what you want is VLD. http://pecl.php.net/package/vld
- Graham Kelly
On Thu, Dec 3, 2009 at 10:51 AM, Mathieu Suen wrote:
> Hi,
>
> Does anyone know how to inspect the opcode of a php file?
>
> Thanks
>
> -- Mathieu Suen
>
>
> --
> PHP In
Hi,
You might find http://lxr.php.net to be a useful tool to help with finding
definitions in the PHP code base.
- Graham Kelly
On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck wrote:
> I'd like to check out how the EG macro (I assume it's a macro) works.
> However,
ossible so that people
can start adopting it.
- Graham Kelly
On Tue, Jul 7, 2009 at 5:21 PM, Ilia Alshanetsky wrote:
> Andrei,
>
> PHP represents a major change on every aspect of the language, I think you
> gotta appreciate it that even if it were to be released today there would
It also makes type analysis for potential compile time optimizations much
easier. It reduces the unknowns that occure from functions! This is
something that could be a big help with that.
On Wed, Jul 1, 2009 at 10:15 AM, Alain Williams wrote:
> On Wed, Jul 01, 2009 at 12:59:59PM -0400, Ilia Alsh
This is great! I've always wanted to see optional type hinting for PHP.
On Wed, Jul 1, 2009 at 10:09 AM, Gwynne Raskind wrote:
> On Jul 1, 2009, at 12:59 PM, Ilia Alshanetsky wrote:
>
>> There has been quite a bit of discussion on this list, IRC, developer
>> meetings, etc... about introduction o
Hey,
Anyway, I guess I'll elaborate a bit on what I've been doing with data flow
(ish) stuff. Basically I am looking at building a def use graph for each
variable (as I mentioned in my last email). The problems seem to come with
loops and with var vars, evals, and includes (I also haven't worke
Hey Paul,
As always, great information!
Anyway, I've been looking into building a fairly simple def-use system where I
build a graph for each variable in the function local scope (each CV, TMP_VAR,
and VAR). What I'm doing is building a local graph for each variable in each
basic block and th
lso seem like really interesting (from what I have read thus far).
- Graham
From: Paul Biggar [paul.big...@gmail.com]
Sent: Saturday, June 06, 2009 6:28 PM
To: Nuno Lopes
Cc: Graham Kelly; PHP Internals; Brian Shire
Subject: Re: [PHP-DEV] RE: Optimizer discu
if there
is really any real interest/or use).
From: Paul Biggar [paul.big...@gmail.com]
Sent: Thursday, June 04, 2009 4:20 PM
To: Graham Kelly
Cc: PHP Internals; Brian Shire
Subject: Optimizer discussion
Graham and I are having a brief chat about the work he's going to do
on the PECL optimi
Hi,
I think that there needs to be more feedback from the community on how
projects are going and the way they should go. This might help to curb some
of the problems being discussed where there was a gap between the project
and what the community wants. Feedback would also help the student know h
t
idea. It would really help keep everyone informd as to whats going on.
Also, more detailed project descriptions would be nice. It was kind of hard
to know what to write a proposal on for just a two sentance description of
the project.
~ Graham Kelly
On Thu, Jan 22, 2009 at 4:38 AM, Pierre Joye wrote:
more type hinting :).
~Graham Kelly
On Wed, Dec 17, 2008 at 5:57 PM, Nathan Rixham wrote:
> Don't want to take up much of you're time, just wondered if anybody could
> point me to the reason why some primitives aren't in php.
>
> Would find it very very useful to have
Hi,
I wouldn't really worry about the ternary operator too much. These kinds of
micro optimizations really only appear to make a difference in contrived
benchmarks and usually aren't the norm in real life applications. However,
with that said, an optimization is an optimization. Optimizations like
ight see a significant improvement for these cases.
~ Graham Kelly
On Tue, Nov 4, 2008 at 4:53 PM, Lukas Kahwe Smith <[EMAIL PROTECTED]>wrote:
> Hello again,
>
> once again top posting this this is fairly old ..
> however for something that is sounding so promising I am won
Hi,
My Google Summer of Code project is to develop and release an initial
version on the optimizer originally being developed by Ilia. The optimizer
will be released to PECL as its own extension, however, it will require APC
in order to run.
Ive worked on cleaning up bugs and testing the existing
Hi,
I am working on the optimizer for APC for Google summer of code 2008 with
Derick.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
19 matches
Mail list logo