From: Hans Reiser <reiser@namesys.com>
To: nikita@namesys.com
Cc: ReiserFS <reiserfs-list@namesys.com>
Subject: lexicographic ordering is not always best
Date: Tue, 18 Feb 2003 02:38:11 +0300 [thread overview]
Message-ID: <3E517263.3030504@namesys.com> (raw)
Suppose that you have small directories, such that the time to do linear
searching within the directory is not significant.
Suppose that you have a tendency to access files in readdir() order, and
having files laid out in an order that is the same as the directory
order is performance valuable.
Suppose that you create files too slowly for allocate on flush to fix
this problem, and access them too soon for the repacker to fix this problem.
In that case, ordering both directory entries and file bodies in a first
created first ordered order is optimal.
How much work would it be to create a reiser4 directory plugin to order
in creation time order? Could you do this by simply setting the hash
field always to zero for that plugin, and letting the duplicate key code
handle things? If it is trivial to do, it might be useful. Especially
for the analysis of the performance of our algorithms on various benchmarks.
Are you ready to work on implementing file body key assignment in order
of directory entries?
--
Hans
next reply other threads:[~2003-02-17 23:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 23:38 Hans Reiser [this message]
2003-02-18 10:54 ` lexicographic ordering is not always best Nikita Danilov
2003-02-18 11:10 ` Hans Reiser
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=3E517263.3030504@namesys.com \
--to=reiser@namesys.com \
--cc=nikita@namesys.com \
--cc=reiserfs-list@namesys.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 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.