Kevin Roast c5fafd6ad4 Improvement to AuthorityDAOImpl to not perform pointless checks (DB getChildAssoc query) to see if a ROLE_ is a person, it never can be and null results aren't cached. This saves a DB query at the start of many REST API calls (as authenticated WS calls first check isGuest() etc.).
YourKit profiler results for Share READ heavy multi-user JMeter test:
Before: 220s
After: 200s
Specifically; org.alfresco.repo.security.authority.AuthorityServiceImpl.hasGuestAuthority() - before 26.7s - after 0.041s

Unit tests run:
org.alfresco.repo.security.SecurityTestSuite
org.alfresco.repo.security.authentication.*Test
org.alfresco.repo.security.authority.*Test
org.alfresco.repo.security.person.PersonTest


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55761 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-20 15:38:52 +00:00
..