Do not allocate/commit transactions in tight loops 30/5230/4
authorRobert Varga <rovarga@cisco.com>
Mon, 10 Feb 2014 16:35:19 +0000 (17:35 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 11 Feb 2014 14:45:40 +0000 (15:45 +0100)
commitd7bf42ff973faaa0d1c75324dd1c4cd876205bb5
tree0179d527905c928a58502fe82cbba832506cb56e
parent7fde371897de60b58191fc439042a2dc5f6b690f
Do not allocate/commit transactions in tight loops

A transaction is additive and there's little harm in commiting empty
ones. Move allocation/commit outside of tight loops, such that we get
proper bulking.

Change-Id: I1f4920965c8ecf3091b6afb69ce1e1baa7ca0e24
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/StatisticsUpdateCommiter.java