Chromium Code Reviews
Descriptiongdata: Make GDataFileSystem::ReadDirectoryByPath() much more efficient
Previously, ReadDirectoryByPath() was returning DataDirectoryProto,
which contains all child files and directories, recursively.
This means, calling ReadDirectoryByPath() on the root directory is
super expensive as the returned GDataDirectoryProto contains the
entire tree as proto. This was super expensive.
With this change, ReadDirectoryByPath() will only return contents
of the target directory as a flat vector.
BUG=137871
TEST=out/Release/unit_tests --gtest_filter=GData*; also confirmed that the file manager worked as before, including the "save as file" to Drive
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147806
Patch Set 1 #
Total comments: 1
Patch Set 2 : new version #Patch Set 3 : should use ToProtoFull instead #
Total comments: 6
Patch Set 4 : address comments #Patch Set 5 : remove a blank line #
Total comments: 3
Messages
Total messages: 9 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||