Andrew J Bromage:
# On Tue, Apr 23, 2002 at 01:18:23PM -0700, Brent Dax wrote:
#
# > Three questions:
# >
# > 1. Which'll be faster?
#
# It depends on the application, but my money is on mutable
# strings built on top of an immutable buffer. That's based on
# looking at my own string-based Perl code, a lot of which is
# substring extraction (usually by regular expression). It may
# pay off if a string and its substrings can share implementation.
That's what I thought.
# > 2. Which'll be simpler?
#
# Immutable strings are definitely simpler, when you have
# garbage collection.
#
# > 3. Which is more important?
#
# At the risk of stating the obvious, it is more important for
# the interface to be complete.
The interface can be complete either way. It's how fast the code behind
the interface is that'll vary.
--Brent Dax <brentdax@cpan.org>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)
#define private public
--Spotted in a C++ program just before a #include
Thread Previous