dezbyte / multiverse

Automatically exported from code.google.com/p/multiverse
Other
0 stars 0 forks source link

Performance: Atomic methods and object creation #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The @Atomic methods make use of a TransactionTemplate. Preparing the
arguments for the template and creating the Template object itself cost
more work than placing the logic from the template directly in the @Atomic
method. This would make it better performing, especially for very small
transactions. For larger transactions there is less overhead.

But this issue really needs to be checked with a profiler to see if there
really is a serious overhead here. This could be done by manually writing
the code and comparing it to the transactiontemplate approach

Original issue reported on code.google.com by alarmnum...@gmail.com on 2 Jun 2009 at 8:09

GoogleCodeExporter commented 8 years ago

Original comment by alarmnum...@gmail.com on 14 Nov 2009 at 12:06