Improve grouping sort allocation 47/88947/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 17 Apr 2020 19:37:28 +0000 (21:37 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 17 Apr 2020 20:24:31 +0000 (22:24 +0200)
commit78e0b7036708f8c9cfd4085122cf914eddc8c92a
treecfe249c6c91a0fe0bb87ccfff382322e3c72dd42
parentddf8558c1454d317aec50915cbb4559a6eb1d305
Improve grouping sort allocation

Pre-allocating the result list saves us the common case when
the input is actually empty.

Change-Id: I237a75db38e8e0c160b204875bc5824433e9c3dc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/yang/types/GroupingDefinitionDependencySort.java