shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SHIRO-226) Default rememberMe cookie size is rather large
Date Wed, 15 Dec 2010 12:35:03 GMT

     [ 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/%3C2C685FDE-71EE-4834-8816-8E00C890D050@ecyrd.com%3E

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message