[
https://issues.apache.org/jira/browse/SHIRO-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Janne Jalkanen updated SHIRO-226:
---------------------------------
Attachment: SHIRO-226-jalkanen-1.patch
The included patch proposes a SimplePrincipalSerializer, which provides
significant size benefits without (hopefully) sacrificing genericity.
The results are as follows (can be replicated by running the included test
case).
{noformat}
Single principal, single realm
Default serializer, Simple serializer, Size saving
421 100 76.25%
Multiple principals, single realm
Default serializer, Simple serializer, Size saving
575 254 55.83%
Multiple principals, multiple realms
Default serializer, Simple serializer, Size saving
815 368 54.85%
{noformat}
> Default rememberMe cookie size is rather large
> ----------------------------------------------
>
> Key: SHIRO-226
> URL: https://issues.apache.org/jira/browse/SHIRO-226
> Project: Shiro
> Issue Type: Improvement
> Components: RememberMe
> Affects Versions: 1.1.0
> Reporter: Janne Jalkanen
> Attachments: SHIRO-226-jalkanen-1.patch
>
>
> The rememberMe cookie size is fairly big since it uses the DefaultSerializer,
> which serializes a lot of stuff which is not really necessary - especially
> for the fairly common single realm - single principal case. Please see
> discussion at
> http://mail-archives.apache.org/mod_mbox/shiro-user/201012.mbox/%[email protected]%3e
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.