Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Kaarel Kann
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JDO

Decrease lock contention during PersistenceManager.close()

Created: 21/May/14 08:32 AM   Updated: 29/May/14 09:01 AM   Resolved: 21/May/14 09:10 AM
Component/s: None
Affects Version/s: 4.0.0.m3
Fix Version/s: 4.0.0.m4

 Description  « Hide
Move JDOPersistenceManager.internalClose() outside of the sync block.

Improves ~7-8% test if used with multi-threaded configuration:


trunk: COMPLETE: getObjectById time(ms)=29148
Modifie: COMPLETE: getObjectById time(ms)=26703

Sort Order: Ascending order - Click to sort in descending order

Andy Jefferson added a comment - 21/May/14 09:10 AM
GitHub master has this; very minimal change unless high contention

Andy Jefferson added a comment - 21/May/14 09:28 AM
Test now updated with second configuration, multiple threads etc, so usable for higher contention testing