Skip to content

Enforce optimal IndexedInts iteration#5456

Merged
gianm merged 2 commits intoapache:masterfrom
metamx:indexed-ints-iteration-inspection
Mar 9, 2018
Merged

Enforce optimal IndexedInts iteration#5456
gianm merged 2 commits intoapache:masterfrom
metamx:indexed-ints-iteration-inspection

Conversation

@leventov
Copy link
Copy Markdown
Member

@leventov leventov commented Mar 2, 2018

IndexedInts are usually iterated in some other loop, i. e. it's a nested, not a top level loop. So it should pay off to carefully write those loops.

Copy link
Copy Markdown
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I am not totally sure if the java compiler or JVM is able to figure out that the sizes are constants and do this transformation on its own. But the source still looks fine with manual transformation so why not.

@leventov
Copy link
Copy Markdown
Member Author

leventov commented Mar 9, 2018

@gianm could you please merge this?

@gianm gianm merged commit 6b158ab into apache:master Mar 9, 2018
@leventov leventov deleted the indexed-ints-iteration-inspection branch March 10, 2018 12:29
@dclim dclim added this to the 0.13.0 milestone Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants