On Fri, Jul 27, 2018 at 2:30 AM Michael Vorburger <vorbur...@redhat.com> wrote:
> Hello, Tom, Robert, Stephen, > > Does commiting a transaction with no put/.../merge/delete operations on > that Tx have any noteworthy (real life) overhead compared to cancelling it? > > I am asking because that has come up in > ββ > > https://git.opendaylight.org/gerrit/#/c/74506/1/lockmanager/lockmanager-impl/src/main/java/org/opendaylight/genius/lockmanager/impl/LockManagerServiceImpl.java@a229 > and I was wondering if there is any point in making our > ManagedNewTransactionRunner "smarter" so that it does a cancel if it wasn't > actually used. > > My initial reaction is that such an optimization in > ManagedNewTransactionRunner is probably pointless as whatever happens > behind the scenes on a commit is surely already smart enough by itself for > a submit on an empty transaction to basically be a low overhead NOOP anyway? > βOr if transaction API can expose some api like isEmpty() (just example), that can come bit handy here? > > Tx, > M. > -- > Michael Vorburger, Red Hat > vorbur...@redhat.com | IRC: vorburger @freenode | ~ = http://vorburger.ch > _______________________________________________ > controller-dev mailing list > controller-dev@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/controller-dev > -- Thanks Anil
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev