[keycloak-dev] JS policy performance improvements
Pedro Igor Silva
psilva at redhat.com
Fri Jun 16 10:10:15 EDT 2017
+1. I'm glad to review your changes if you send a PR.
On Fri, Jun 16, 2017 at 10:46 AM, Jay Anslow <jma at corefiling.com> wrote:
> Hi all,
> I'm using the JS Policy to evaluate resource permissions, but we've
> started to run into some performance problems when using large numbers of
> However, I've managed to improve the performance of the JSPolicyProvider,
> by caching the ScriptEngine (creating new bindings per evaluation) and
> compiling the code on policy update.
> The "Obtaining Entitlements" operation is now ~5x faster than before, for
> my test setup (100 test runs, ~1100 resources, remote Postgres).
> I'd like to merge my changes back to Keycloak, so I just wanted to check
> if the community would be interested in this change before I prepare a PR
> and create a JIRA issue.
> Jay Anslow, Product Development, CoreFiling Limited
> Phone: +44-1865-203192
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
More information about the keycloak-dev