Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-195

Update element attributes size on serialization

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              tv Thomas Vandahl
              quietmint quietmint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m