public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Steve Wahl <swahl@brecis.com>
Cc: Jasmine Strong <jasmine@hex.linuxgrrls.org>,
	Allen Curtis <acurtis@onz.com>,
	"Linux MTD list (E-mail)" <linux-mtd@lists.infradead.org>
Subject: Re: Stable cvs version for 2.4
Date: Wed, 04 Sep 2002 16:26:30 +0100	[thread overview]
Message-ID: <7226.1031153190@redhat.com> (raw)
In-Reply-To: <20020904101706.D23398@brecis.com>

swahl@brecis.com said:
>  But the assumption that using the lsb of the pointer will only break
> on archetectures that don't care about alignment may be a bad one.

Theoretically yes, but in practice no. It is of course possible that some 
architectures will store in a 'pointer' something other than the actual 
address to be put on the bus when accessing the data in question.

Linux doesn't run on any of that hardware, thankfully. And if it becomes a 
problem, the pointer magic can be fixed then, and it'll be a drop in the 
ocean of all the other now-broken assumptions that we have to fix :)

> I haven't looked at the code (shame on me...), but I thought I heard
> the word "tree" mentioned. :-) If this data structure is being used
> for speed, I have to ask if the extra masking instructions are a good
> trade off for the memory saved? 

If you stick it in the rb_parent field, you don't have to mask it out 
during lookup or insertion operations, only during rebalancing. Either way, 
it's a lot faster than the linked list which I just replaced :)

--
dwmw2

  reply	other threads:[~2002-09-04 15:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 10:09 Stable cvs version for 2.4 John Hall
2002-09-03 12:29 ` David Woodhouse
2002-09-04  0:18   ` David Woodhouse
2002-09-04  1:14     ` Jasmine Strong
2002-09-04  8:51       ` David Woodhouse
2002-09-04 14:21         ` Jasmine Strong
2002-09-04 14:37           ` David Woodhouse
2002-09-04 14:46             ` Allen Curtis
2002-09-04 14:54               ` Jasmine Strong
2002-09-04 15:17                 ` Steve Wahl
2002-09-04 15:26                   ` David Woodhouse [this message]
2002-09-04 15:20                 ` David Woodhouse
2002-09-04 15:33                   ` Jasmine Strong
2002-09-04 15:44                     ` David Woodhouse
2002-09-04 15:50                     ` Allen Curtis
2002-09-04 15:54                       ` David Woodhouse
2002-09-04 14:49             ` Jasmine Strong
2002-09-04 15:06               ` David Woodhouse

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=7226.1031153190@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=acurtis@onz.com \
    --cc=jasmine@hex.linuxgrrls.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=swahl@brecis.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox