[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Moment of Zen



On Fri, Oct 01, 1999 at 10:54:56AM -0400, John Porter wrote:
> * Ronald J Kimball (rjk@linguist.dartmouth.edu) [991001 10:37]:
> > Neither code is the same as the original.  Code the same as the original
> > cannot be benchmarked, because the original code is not complete!
> > 
> >       my $mindshare = mindshare(...);
> > 
> > We don't know what the arguments to mindshare() are. 
> 
> O.k., now you're the one who's being perticlar. :-)
> It's pretty obvious that the arguments would include each key from %sites.

How is that obvious?  Why wouldn't the arguments include the value, rather
than the key?  I don't see what you're basing that assertion on.


> > Clearly, the loop is
> > where optimization has to be focused.
> 
> Right; and that's where suggested optimizations *have* been focused.
> 

But relying on the keys being used in both places is not a valid
assumption.

Ronald

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe