Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResultTile::coord() performance #1689

Merged
merged 1 commit into from
Jun 16, 2020
Merged

ResultTile::coord() performance #1689

merged 1 commit into from
Jun 16, 2020

Conversation

joe-maley
Copy link
Contributor

This removes the branch within the ResultTile::coord() implementation to
test if it contains zipped or unzipped coordinates.

The function contract is slightly modified because now the caller must ensure
that an underlying coordinate exists at there requested position and dimension.
Currently, the ResultTile::coord() may return null if nothing is found. This
does not appear to be an expected output anywhere in the unit tests or code.

In a certain read benchmark that paths through this routine multiple times,
this patch reduces the avg execution time from 18.15s to 17.00s.

This removes the branch within the ResultTile::coord() implementation to
test if it contains zipped or unzipped coordinates.

The function contract is slightly modified because now the caller must ensure
that an underlying coordinate exists at there requested position and dimension.
Currently, the `ResultTile::coord()` may return null if nothing is found. This
does not appear to be an expected output anywhere in the unit tests or code.

In a certain read benchmark that paths through this routine multiple times,
this patch reduces the avg execution time from 18.15s to 17.00s.
@joe-maley joe-maley merged commit 2ab1f73 into dev Jun 16, 2020
@joe-maley joe-maley deleted the jpm/coord-perf-1 branch June 16, 2020 20:12
joe-maley pushed a commit that referenced this pull request Jul 22, 2020
This removes the branch within the ResultTile::coord() implementation to
test if it contains zipped or unzipped coordinates.

The function contract is slightly modified because now the caller must ensure
that an underlying coordinate exists at there requested position and dimension.
Currently, the `ResultTile::coord()` may return null if nothing is found. This
does not appear to be an expected output anywhere in the unit tests or code.

In a certain read benchmark that paths through this routine multiple times,
this patch reduces the avg execution time from 18.15s to 17.00s.
Shelnutt2 pushed a commit that referenced this pull request Jul 22, 2020
This removes the branch within the ResultTile::coord() implementation to
test if it contains zipped or unzipped coordinates.

The function contract is slightly modified because now the caller must ensure
that an underlying coordinate exists at there requested position and dimension.
Currently, the `ResultTile::coord()` may return null if nothing is found. This
does not appear to be an expected output anywhere in the unit tests or code.

In a certain read benchmark that paths through this routine multiple times,
this patch reduces the avg execution time from 18.15s to 17.00s.
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.

2 participants