Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39388 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44864 invoked from network); 27 Jul 2008 18:12:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2008 18:12:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 64.233.166.182 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 64.233.166.182 py-out-1112.google.com Received: from [64.233.166.182] ([64.233.166.182:52064] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/DC-02589-2AABC884 for ; Sun, 27 Jul 2008 14:12:51 -0400 Received: by py-out-1112.google.com with SMTP id a25so2050503pyi.16 for ; Sun, 27 Jul 2008 11:12:48 -0700 (PDT) Received: by 10.65.219.20 with SMTP id w20mr7947753qbq.74.1217182368118; Sun, 27 Jul 2008 11:12:48 -0700 (PDT) Received: from ?192.168.1.103? ( [72.138.241.182]) by mx.google.com with ESMTPS id k30sm18146657qba.4.2008.07.27.11.12.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Jul 2008 11:12:47 -0700 (PDT) Cc: php-dev List Message-ID: To: Graham Kelly In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Sun, 27 Jul 2008 14:12:46 -0400 References: X-Mailer: Apple Mail (2.926) Subject: Re: [PHP-DEV] GSoC Optimizer Update From: ilia@prohost.org (Ilia Alshanetsky) Great work, I've been periodically reviewing the commits and you're making excellent progress in terms of making the optimizer a general use tool. One thing I would suggest is creation of a "known issues" list, which can act as both a todo list and a warning list for people intending to use the optimizer. On 25-Jul-08, at 8:59 PM, Graham Kelly wrote: > 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 code. In > addition I > have worked on refactoring some of the code to provide a base on > which to > build a more powerful and more robust optimizer. I have added a few > additional optimizations including: > 1) Optimization of basic math identities > 2) Optimization of silence blocks > 3) More functions for which we can pre-calculate return values for > if they > have all static parameters. (substr, acos, acosh, asin, asinh, atan, > atanh, > cos, cosh, sin, sinh, tan, tanh, exp, log10, sqrt, atan2, ceil, > floor, fmod, > ini_get [for PHP_INI_SYSTEM values only], ip2long, long2ip, trim, > chop, > rtrim, ltrim, rad2deg, deg2rad, abs) > 4) worked on making function optimization more aggressive to reduce > the > number of required passes for full optimization. > 5) A few more minor things here and there > > There are plans to change the optimizer hook in APC over to adding a > new > compile layer. This should help give the optimizer better control as > well as > make it more easily integrateable with other extensions. > > In the future I would like to work on a new control system and new > analysis > tools for the optimizer. Hopefully such eventual changes will open > up the > way for more powerful optimizations down the road. In addition there > are > some APC specific optimizations that might be able to be done. > > Hopefully the initial release of the optimizer will in available in > PECL in > the next few weeks. For now you can get it from pecl/optimizer in CVS. > > ~ Graham Ilia Alshanetsky