tree.c
22.5 KB
-
tree: avoid advancing over the filename multiple times · 7132150d
We've already looked at the filename with `memchr()` and then used `strlen()` to allocate the entry. We already know how much we have to advance to get to the object id, so add the filename length instead of looking at each byte again.
Carlos Martín Nieto committed