Re: [PHP-DEV] OPcache optimizer improvement in PHP-5.5?

2013-04-11 Thread Graham Kelly-Cohn
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

Re: [PHP-DEV] Will apc.optimization ever be put back to APC?

2011-12-04 Thread Graham Kelly
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

Re: [PHP-DEV] About optimization

2010-01-13 Thread Graham Kelly
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

Re: [PHP-DEV] Inspecting opcode

2009-12-03 Thread Graham Kelly
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

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread Graham Kelly
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

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread Graham Kelly
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

Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3

2009-07-01 Thread Graham Kelly
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...

Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3

2009-07-01 Thread Graham Kelly
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

[PHP-DEV] Re: PHC Dataflow

2009-06-30 Thread Graham Kelly
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

[PHP-DEV] Re: PHC Dataflow

2009-06-29 Thread Graham Kelly
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

RE: [PHP-DEV] RE: Optimizer discussion

2009-06-06 Thread Graham Kelly
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

[PHP-DEV] RE: Optimizer discussion

2009-06-04 Thread Graham Kelly
). 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

Re: [PHP-DEV] GSoC 2009

2009-01-25 Thread Graham Kelly
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

Re: [PHP-DEV] Re: GSoC 2009

2009-01-22 Thread Graham Kelly
. 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

Re: [PHP-DEV] Q on Primitives

2008-12-17 Thread Graham Kelly
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

Re: [PHP-DEV] Ternary operator optimization tip

2008-12-14 Thread Graham Kelly
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

Re: [PHP-DEV] An optimization idea

2008-11-05 Thread Graham Kelly
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

[PHP-DEV] GSoC Optimizer Update

2008-07-25 Thread Graham Kelly
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

[PHP-DEV] CVS Account Request: graham

2008-04-22 Thread Samuel Graham Kelly
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