logo       

Re: cvs: ZendEngine2 / zend_execute.c: msg#00036

Subject: Re: cvs: ZendEngine2 / zend_execute.c
On Fri, 16 Jul 2004 12:15:46 -0400, Ilia Alshanetsky <ilia@xxxxxxxxxxx> wrote:
> On July 16, 2004 11:58 am, Thies C. Arntzen wrote:
> > hey ilia,
> >
> > here's another one of my meaningess, synthetic benchmarks (this is how
> > the CreatorsOfPHP(tm) would call them)
> >
> > ackermann(8) (source on request - highly recursive)
> 
> Recursive functions in PHP are inherently dangerous as without proper limits
> they will rather quickly ~5671 iterations with a basic function a() { a(); }
> (PHP 4/5).
> By comparison the same code only takes 2897 iterations before the patch. While
> the patch does not solve this crash it reduces it's chances by nearly 50%
> (unexpected benefit).
> 
> More over the crash problem that the patch solves is not theoretical that I
> made up because I have nothing better to do. We have at least 2 confirmed bug
> reports by different people and surely there are others who came across this
> issue and didn't report it.
> 
> Yes, you are correct, with a dedicated benchmark specifically designed to
> "exploit" the allocation routine change there is a performance drop, but
> surely stability is more important then speed. If that is not that case,
> there are a whole lot of optimizations we can perform, but that'd mean users
> will need to write their code extra carefully :-), which as we know is not
> going to happen.

php has no  real concept for out-of-memory situations (stack or real)
- nor do we catch infinite (nor too deep) recursions. allowing for
"deeper" recursion doesn't really fix anything. so, i think we should
either come up with a real solution or leave it as it is.

i have to say that i  do care if we're making the genreal case slower,
even if it's a tiny bit...

re,
-tc

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe