Description of problem:
If a directory contains 2000 files, the listing of that directory is much faster than the listing of directory that contains 2000 directories.
This needs to be fixed. Its hard to fix it for the first run of readdir on the fresh mount, but atleast for the subsequent runs we should be able to improve performance.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
REVIEW: https://review.gluster.org/19559 (dht: Do not set the inode to NULL in readdirp_cbk, on certain conditions) posted (#6) for review on master by Poornima G
A WIP proposal can be found at:
Note that the discussion is still in preliminary stage and its not evident yet this can be a valid solution. But, I plan to spend some more time on this to drive it to a logical conclusion of whether it can be a viable solution or not.
Closing this bug as the corresponding bug is abandoned and not being actively worked on.