Skip to content

Conversation

@N-Dekker
Copy link
Contributor

Two small style commits, as suggested by @dzenanz at #5787 (comment)

`ImageConstIterator::m_Offset` is already declared as `OffsetValueType`, so the
static_cast is redundant.
@github-actions github-actions bot added the area:Core Issues affecting the Core module label Feb 11, 2026
@dzenanz
Copy link
Member

dzenanz commented Feb 11, 2026

Can you also add replacements of Iterator by IteratorWithIndex to this PR? Or do you intend to do that in another PR? Those changes are also PERF: type, so non-contentious.

@N-Dekker
Copy link
Contributor Author

Can you also add replacements of Iterator by IteratorWithIndex to this PR? Or do you intend to do that in another PR? Those changes are also PERF: type, so non-contentious.

I would prefer to keep this simple style PR just the way it is now. 🤷

It takes more time to figure out which of the iterator declarations may be adjusted for better performance. I would prefer to do so after pull request #5787 (introducing ImageConstIterator::ComputeIndex()) is processed. ComputeIndex() can be of help to find those performance opportunities.

@hjmjohnson hjmjohnson merged commit 00844a2 into InsightSoftwareConsortium:main Feb 12, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants