Re: [PATCH 1/5] Add 'df_name_compare()' helper function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Kastrup
Date: Thursday, March 6, 2008 - 2:50 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


[...]


Well, as I said: a single pass is ok when additionally supported by a
FIFO keeping x around until x/ (or its place in the order of things)
passes by.  This will be O(1) with regards to comparisons, and typically
cheap with regard to memory requirements (things get unfriendly if there
are billions of files or even directories obeying the pattern x.*, but
only with regard to memory, not speed).

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/5] Add 'df_name_compare()' helper function, Linus Torvalds, (Wed Mar 5, 7:25 pm)
Re: [PATCH 1/5] Add 'df_name_compare()' helper function, David Kastrup, (Thu Mar 6, 6:03 am)
Re: [PATCH 1/5] Add 'df_name_compare()' helper function, Linus Torvalds, (Thu Mar 6, 8:58 am)
Re: [PATCH 1/5] Add 'df_name_compare()' helper function, David Kastrup, (Thu Mar 6, 2:50 pm)