Skip to Content.
Sympa Menu

grouper-users - GrouperClient GcGetGrouperPrivilegesLite timings

Subject: Grouper Users - Open Discussion List

List archive

GrouperClient GcGetGrouperPrivilegesLite timings


Chronological Thread 
  • From: Paul Gazda <>
  • To: Grouper Users Mailing List <>
  • Subject: GrouperClient GcGetGrouperPrivilegesLite timings
  • Date: Fri, 19 Jun 2009 09:46:45 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

I have been trying to make my calls using GrouperClient as efficient as possible by running some tests and monitoring the values in getResponseMetadata().getMillis(). When I ran some tests using gcGetGrouperPrivilegesLite.assignActAsSubject, I found something that seems counter-intuitive and just wondered if anyone can explain the reason for the timings I am seeing.

 

When I instantiate the WsSubjectLookup object used by gcGetGrouperPrivilegesLite.assignActAsSubject with a subjectSource, gcGetGrouperPrivilegesLite.execute() runs 20% slower than when I define the subjectSource as null (average of 3175 millis compared with 2641 millis). In this case, the subject source is LDAP.

 

I would have thought that defining the subjectSource would make whatever subject lookups are being done run faster rather than slower, because the source is known. I’m also wondering whether this kind of performance difference would always occur when WsSubjectLookup objects are used (e.g. gcGetGrouperPrivilegesLite.assignSubjectLookup ).

 

Paul Gazda




Archive powered by MHonArc 2.6.16.

Top of Page