You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when using the Within on the grid to iterate through values of all tiles it's slower than when iterating by simply using At. Here are benchmarks I quickly wrote:
Benchmark testing the performance of the built-in Within:
I noticed that when using the
Within
on the grid to iterate through values of all tiles it's slower than when iterating by simply usingAt
. Here are benchmarks I quickly wrote:Benchmark testing the performance of the built-in
Within
:Benchmark using
At
where whole chunk is scanned with a simple double for loop:A benchmark that tries to get values using
At
but working on a page at a time:Results show that
At
is significantly faster thanWithin
. Also accessing tile's values page-at-a-time increases performance by only ≈0.82%:I'm not sure if that's intended behavior but something tells me there's an opportunity for adding an optimized values getter.
The text was updated successfully, but these errors were encountered: