Skip to content

Possible speed up #35

Description

@ercius

Looking a tithe code in getImage_jit, I think this can be sped up by testing if a position is >0. This will avoid testing if an array element is inside the ROI box when we know its not an electron strike and instead a part of the zero padding.

t1 = rows[ii, jj, kk] > left

Solution to test:
Add if rows[ii, jj, kk] > 0: at the line above. No need to test cols since that will always be zero if rows is zero.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions