linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* newbie question about struct btrfs_dir_item *btrfs_match_dir_item_name
@ 2010-10-18 14:14 David Nicol
  0 siblings, 0 replies; only message in thread
From: David Nicol @ 2010-10-18 14:14 UTC (permalink / raw)
  To: BTRFS MAILING LIST

reading, in dir-item.c, the code in
struct btrfs_dir_item *btrfs_match_dir_item_name (...)
I am a little surprised to see an O(n) iterative name comparison check
instead of something that would
efficiently support directories with lots of items in them. Is this
function a fall-back if a O(1) table lookup
somewhere else misses, perhaps?



-- 
"In one instance, a rai being transported by canoe was accidentally
dropped and sunk to the sea floor. Although it was never seen again,
everyone agreed that the rai must still be there, so it continued to
be transacted as genuine currency" -- Wikipedia

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-18 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 14:14 newbie question about struct btrfs_dir_item *btrfs_match_dir_item_name David Nicol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).