Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC HACK] refresh_index: lstat() in inode order

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:14

Thomas Rast [off-list ref] writes:
The dirty hack below uses the inode field in the index to sort the index
entries prior to the real work of refresh_index.
I think we do something similar in fsck to touch loose object files
in clusters, and would not be surprised if you see performance boost
by running lstat(2) in clusters for the purpose of refresh_index().

Right now, preload_index() partitions the index entries by offset
and hands them out to worker threads, but it _might_ make sense to
use fewer number of threads and give them entries sorted by the inum.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help