logo       

Re: New text.replace virtual method for v2.15: msg#00053

Subject: Re: New text.replace virtual method for v2.15
Josh wrote:
> (I know it's readability vs. speed, but in this case I'd rather 
> have speed.) 

That's easy for you to say: you don't have to maintain the code!  :-)

Although its undeniable that the code could be faster, it's unlikely
that anyone is going to be calling .replace enough times in one day 
to notice any significant difference.

I wouldn't argue against speed over style if we were talking about the
Stash dotop() method which is getting hammered continually.  But in the
case of a single virtual method, any extra effort expended here is going
to have limited returns in all but the most extreme examples (e.g. 
benchmarks).

> Also, this doesn't check to see if we even need backrefs, 

Yep, that might be worth adding, even if the rest stays the same.

I'll certainly look over what you posted when I get a chance (which won't
be until next week some time), but for now I'm inclined to say the matter 
is closed, for this release at least.  We've got a working implementation 
which it's already on its third iteration (at least) and I think it's 
Good Enough for now.

But I'm sure there are plenty of other vmethods that could do with more 
thorough testing and/or documenting.  We've got a new t/vmethods/ directory 
specially for vmethod tests and the existing tests are in there to cut-n-paste 
from, or expand upon.  

Cheers
A


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

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
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