At 08:26 PM 10/23/00 -0600, Nathan Torkington wrote:
>Uri Guttman writes:
> > overall i agree. but i use objects much more now and don't think about
> > the runtime cost at all (estimated to be %30)
>
>I know a company that had to rewrite most of their OO code because it
>was the bottleneck in their application. The rewrite was enough to
>move the speed from "too slow" to "acceptable", and all they did was
>deobjectify the design.
The speed of perl's OO is more than a little important to me at the moment,
and I don't even *write* OO code. :)
What I'd really like is for us to put together a list of benchmark (though
not Benchmark) programs and sample inputs for them if they need some. I'd
also like to get what we can consider reasonable percentage speedup targets
for perl 6. (No sneaky asking for perl to rip through a file faster than a
drive can read the data... :-) We can choose the version of perl 5 we want
to use as a reference, and go from there. We may not make our targets, but
at least we'll have something to shoot for, and a rough measure of whether
we're going in the right direction.
This isn't, FWIW, a shot at premature optimization or anything of the sort.
(Crocking the perl 6 source to beat the benchmarks, though, is another
matter entirely... :) What we've got right now is vague "perl is too slow",
and it is in spots. Without agreed-on goals, though, we're sort of at the
mercy of whoever writes the optimizer and directs the development. (And I
should warn everyone that my penchant is for ripping through
multi-gigabytes of data from either text files or simple databases,
regexing against it, and spitting it out to a file somewhere. That's where
my scripts run for hours, and where I care the most, since it affects me
directly)
So unless we come up with something concrete, the goals are:
1) A nebulous ~10% faster
2) Faster in the things that annoy Dan the most
3) Faster in the OO bits the folks upstairs from me use
I think we can do a bit better than that...
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk