cbor stores the length of arrays in its encoding so we can just extract it from there
Traversing the same filesystem with tree now takes only 1m 24s instead of 50m 01s.
tree /tmp/puzzle 0.31s user 1.05s system 0% cpu 50:01.40 total tree /tmp/puzzle 0.13s user 0.43s system 0% cpu 1:24.36 total
length
cbor stores the length of arrays in its encoding so we can just extract it from there
Traversing the same filesystem with tree now takes only 1m 24s instead of 50m 01s. tree /tmp/puzzle 0.31s user 1.05s system 0% cpu 50:01.40 total tree /tmp/puzzle 0.13s user 0.43s system 0% cpu 1:24.36 total
Signed-off-by: Ariel Miculas amiculas@cisco.com