cc: optimize rtree loop
The rtree build_tree code is calculating two parameters num_strips and num_tiles that it used to iterate through the list but both are unnecessary. The iterated parameters were not used, and the ceil used on the sqrt insured that we go through every single branch. This patch removes the extra variables and converts the two loops going through strips and tiles, into one loop that goes through branches from the input. Bug: None Change-Id: I156a1607d81010f00523f0a6c60e45dfe3a88a88 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1612047Reviewed-by:enne <enne@chromium.org> Reviewed-by:
Mike Klein <mtklein@chromium.org> Commit-Queue: James Bankoski <jimbankoski@google.com> Cr-Commit-Position: refs/heads/master@{#659749}
Showing
Please register or sign in to comment