[PATCH v3 7/9] xfsrestore: make node lookup more efficient
Alex Elder
aelder at sgi.com
Tue Nov 16 13:20:07 CST 2010
On Tue, 2010-11-16 at 09:05 -0600, wkendall at sgi.com wrote:
> plain text document attachment (window_lookup_performance)
> When converting an nh_t to a segment index and relative node index,
> use shift and bitwise-and instead of division and modulo. Results show
> this is about 50% faster than the current method.
So the mapping interface now takes a segment index
rather than a node index, and you have node_map_*()
functions that operate on node handles. I think
that's good. That change seems to be bigger, but
it basically enabled you to make the switch to
masking only affect those new functions.
Anyway, looks good to me.
Reviewed-by: Alex Elder <aelder at sgi.com>
>
> Signed-off-by: Bill Kendall <wkendall at sgi.com>
More information about the xfs
mailing list