Skip to content

Conversation

@rovarga
Copy link
Contributor

@rovarga rovarga commented Sep 14, 2017

toLoad is used as a java.util.Queue, but is backed by an ArrayList,
which is highly inefficient when large number of items are present.

Turn it into a Queue with ArrayDeque as the implementation, which shaves
OpenDaylight initial start time from 102 seconds down to under3 seconds.

Signed-off-by: Robert Varga nite@hq.sk

toLoad is used as a java.util.Queue, but is backed by an ArrayList,
which is highly inefficient when large number of items are present.

Turn it into a Queue with ArrayDeque as the implementation, which shaves
OpenDaylight initial start time from 102 seconds down to under3 seconds.

Signed-off-by: Robert Varga <nite@hq.sk>
@gnodet
Copy link
Contributor

gnodet commented Sep 14, 2017

Awesome ! I'll commit it asap.

@rovarga
Copy link
Contributor Author

rovarga commented Sep 14, 2017

Btw, downstream issue tracking this is: https://bugs.opendaylight.org/show_bug.cgi?id=9161

@gnodet
Copy link
Contributor

gnodet commented Sep 14, 2017

Merged to master, 4.1.x and 4.0.x branches. Could you please close the PR ?

@rovarga
Copy link
Contributor Author

rovarga commented Sep 14, 2017

Sure thing. It is also applicable to master (although the 'loaded' Set masks some of the performance impact). Should I push a PR for that?

@rovarga rovarga closed this Sep 14, 2017
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