APM Sharepoint authentication
Published Apr 20, 2016
Version 1.0Was this article helpful?
Hi Kai,
I tried in version tcl 8.4 et tcl 8.5, and I confirm
[info exists]
is optimized in version 8.5. but $last_ua_agent ne [set last_ua_agent XXX]
has also poor performance in tcl 8.4.
$ tclsh8.5
% set ua "Mozilla"
Mozilla
% set authschema "browser"
browser
% time { expr { [info exists authschema] } } 100000
0.32418845 microseconds per iteration
% time { expr { $ua != [ set ua "Mozilla"] } } 100000
0.56738861 microseconds per iteration
$ tclsh8.4
% set ua "Mozilla"
Mozilla
% set authschema "browser"
browser
% time { expr { [info exists authschema] } } 100000
0.98919 microseconds per iteration
% time { expr { $ua != [ set ua "Mozilla"] } } 100000
0.73574 microseconds per iteration
I understand the user agent can change on a single TCP connection, but the client type may not change (As I know, proxy servers does not reuse TCP connection for different client connections).
thank you very much for pointing me which part of this irule I can optimize, and share your experience about irule and APM interoperability.
I hope this feature will be included in future sharepoint iapp and deployment guide.
Next step will be to add Microsoft ADAL support with future version if F5 oauth implementation will be compatible.