You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "quietmint (JIRA)" <ji...@apache.org> on 2018/11/26 21:31:00 UTC

[jira] [Updated] (JCS-195) Update element attributes size on serialization

     [ https://issues.apache.org/jira/browse/JCS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

quietmint updated JCS-195:
--------------------------
    Labels: admin-interface beginner documentation easyfix pull-request-available  (was: admin-interface beginner documentation easyfix)

> Update element attributes size on serialization
> -----------------------------------------------
>
>                 Key: JCS-195
>                 URL: https://issues.apache.org/jira/browse/JCS-195
>             Project: Commons JCS
>          Issue Type: Improvement
>          Components: Composite Cache
>    Affects Versions: jcs-2.2
>            Reporter: quietmint
>            Priority: Major
>              Labels: admin-interface, beginner, documentation, easyfix, pull-request-available
>
> {{ElementAttributes}} class has a field to store the size in bytes (e.g., for use in an admin-style page). Calculating the size is an expensive operation, so it makes sense to save the size whenever we serialize the element. Admin pages that want this data could then get a cheap approximation from the last time the element was serialized.
> Additionally, the javadocs say the size field is populated as -1 by default, but it's really 0 by default.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)