Commit 2f5adebb authored by Panmari's avatar Panmari Committed by Martin Wicke
Browse files

Some minor optimizations for speeding up nearest neighbor resize. (#8444)

* Some minor optimizations for speeding up nearest neighbor resize.

By removing loop over channels. Impact mainly visible for more than 3
channels. Numbers for benchmark with 6 channels:

Before:
Benchmark                                        Time(ns) Iterations
--------------------------------------------------------------------
BM_Resize_ResizeNearestNeighbor_cpu_10_499_499   53222200        100
     280.7M items/s

After:
Benchmark                                        Time(ns) Iterations
--------------------------------------------------------------------
BM_Resize_ResizeNearestNeighbor_cpu_10_499_499   44504450        100
     335.7M items/s

* Simplified implementation in accordance with jhseu@ comments.
parent f8d8172c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment