From: Rusty Russell <rusty@rustcorp.com.au>
To: ultraptr@pacbell.net
Cc: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
Xen Mailing List <xen-devel@lists.sourceforge.net>
Subject: Re: [PATCH 3/3] Replace slab.c with a very simpleallocator.
Date: Fri, 04 Feb 2005 14:26:41 +1100 [thread overview]
Message-ID: <1107487601.28908.14.camel@localhost.localdomain> (raw)
In-Reply-To: <20050203194406.GB18587@dront>
On Thu, 2005-02-03 at 11:44 -0800, ultraptr@pacbell.net wrote:
> I wonder what are reasons for this replacement. From outside it looks like
> proven and fast slab allocator is being replaced with slow and new one just
> for sake of size and beauty of source codes?
Yes, that's approximately correct. Slow, of course, is arguable: it is
possible that the old code was slower, given the setup time and how
infrequently allocations are actually used. The point here is that it
is quite possible that someone may want to make modifications to the
allocator which will be far simpler on the new code than the old.
In the finest book ever written on computer programming, Kernighan and
Plauger wrote "Don't patch bad code -- rewrite it". I agree.
Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
next prev parent reply other threads:[~2005-02-04 3:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 8:43 [PATCH 3/3] Replace slab.c with a very simpleallocator Ian Pratt
2005-02-03 19:44 ` ultraptr
2005-02-04 2:11 ` David Hopwood
2005-02-04 3:26 ` Rusty Russell [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-03 22:22 Ian Pratt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1107487601.28908.14.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=ultraptr@pacbell.net \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.