Thread (11 messages) flat view 11 messages, 4 authors, 2016-06-15

Re: Horrible re-packing?

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:28


On Mon, 5 Jun 2006, Olivier Galibert wrote:
Why don't you just sort the full path+filename with a strcmp variant
that starts by the end of the string for comparison?  May at least be
simpler to understand.
That's actually what I was going to do, but we don't save the whole name, 
just the sorting number.

(This is actually an area where saving space is important - we can easily 
be working with hundreds of thousands or millions of objects, and we don't 
want to keep the name of each of them around).

So the suggested hash sort is designed exactly to end up approximating 
that ascii sort-from-end-of-string.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help