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:
?php
define('FOO', 'a');
include('b.php');
?
b.php:
?php
define('FOO', 'b');
echo FOO;
?
It is certainly not likely for a constant to be defined twice but PHP
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
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 d...@dmi.me.uk wrote:
mathieu.suen wrote:
Sebastian Bergmann wrote:
Am 13.01.2010 12:18, schrieb mathieu.suen:
Because any optimization, even very simple
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 mathieu.s...@easyflirt.comwrote:
Hi,
Does anyone know how to inspect the opcode of a php file?
Thanks
-- Mathieu Suen
--
PHP Internals - PHP Runtime
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 markskilb...@gmail.comwrote:
I'd like to check out how the EG macro (I assume it's a macro) works.
However, I cannot
that people
can start adopting it.
- Graham Kelly
On Tue, Jul 7, 2009 at 5:21 PM, Ilia Alshanetsky i...@prohost.org 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 be
sometime before
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 gwy...@darkrainfall.orgwrote:
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...
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 a...@phcomp.co.uk wrote:
On Wed, Jul 01, 2009 at 12:59:59PM
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
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
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 discussion
On Fri, Jun 5
).
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 optimizer. People have asked me to do this on-list (they
may
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
. 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 pierre
type hinting :).
~Graham Kelly
On Wed, Dec 17, 2008 at 5:57 PM, Nathan Rixham nrix...@gmail.com 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 byte, short, long
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
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 wondering why this
hasnt been picked up
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
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