Skip to content

Optimize touch_position_to_pixel_position performance by avoiding NumPy overhead for small 2D coordinate mapping.#349

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_936352978
Open

Optimize touch_position_to_pixel_position performance by avoiding NumPy overhead for small 2D coordinate mapping.#349
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_936352978

Conversation

@copybara-service

Copy link
Copy Markdown

Optimize touch_position_to_pixel_position performance by avoiding NumPy overhead for small 2D coordinate mapping.

Benchmark results (local runs, n=10):
name old time/op new time/op delta
TouchPositionToPixelPosition 5.19µs ± 1% 1.60µs ± 1% -69.12% (p=0.000 n=10)

…Py overhead for small 2D coordinate mapping.

Benchmark results (local runs, n=10):
name                                   old time/op   new time/op   delta
TouchPositionToPixelPosition           5.19µs ± 1%   1.60µs ± 1%  -69.12%  (p=0.000 n=10)

PiperOrigin-RevId: 936352978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant