[Owasp-antisamy] Performance optimization

Serge Droganov sergei at droganov.ru
Wed Jun 4 16:37:33 EDT 2008


Hello,
RTFM doesn't help me, so I have to ask my question here.

I have discovered (with getScanTime) that AntiSamy needs about 0.028  
second to sanitize mid-sized html page.
But actual scan time  for the same page is about a second.

It looks like reading and parsing policy file is the most expensive  
operation.

So my question is:
Is there any option to read and parse policy file once at the first  
call and store results within an application?
(antiSamy.scan(input, cachedPolicy))


Thank you,
Serge


More information about the Owasp-antisamy mailing list