Commit 25a8c80b authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

speed up leafentry_disksize. addresses #1585

git-svn-id: file:///svn/toku/tokudb@10482 c7de825b-a66e-492c-adef-691d508d4ae1
parent 77e76d73
......@@ -151,9 +151,12 @@ leafentry_disksize_internal (LEAFENTRY le) {
}
u_int32_t leafentry_disksize (LEAFENTRY le) {
u_int32_t m = leafentry_memsize(le);
u_int32_t d = leafentry_disksize_internal(le);
#if 0
// this computation is currently identical to the _disksize_internal
u_int32_t m = leafentry_memsize(le);
assert(m==d);
#endif
return d;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment