[Zucchini-read]: Remove std::set usage to reduce peak memory.
binary tree. std::vector followed by std::sort and std::unique is a cheaper operation that saves a lot of RAM. Zucchini-read approximately halves in memory consumption (binary dependent) as a result of this change. std: :set is expensive in 64 bit binaries as it uses pointers to store a Change-Id: Ib7dd8242f8629ba436943695aa8ed3c3b8803ee4 Reviewed-on: https://chromium-review.googlesource.com/951753 Commit-Queue: Calder Kitagawa <ckitagawa@google.com> Reviewed-by:Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#541526}
Showing
Please register or sign in to comment