Improve jvppgen object array member instantiation 81/6881/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 25 May 2017 17:03:18 +0000 (19:03 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 26 May 2017 18:14:20 +0000 (18:14 +0000)
commited1e242866704d1f8654e44ed32c4b431d2d5795
treee98ae927f2d2b42f9f4e369fefddff1a75aa5bc6
parent612a383e7f6cb9a6b846674a09a19299ed31a138
Improve jvppgen object array member instantiation

Since all objects of the array have the same type, the object
constructor is a loop invariant. Move the lookup out of the loop,
making things faster.

Change-Id: I631c72b59c6c63eccd49ede41c6dc0541c325db9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Robert Varga <nite@hq.sk>
src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py