[
https://issues.apache.org/jira/browse/JCR-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861386#action_12861386
]
Stefan Guggisberg commented on JCR-2619:
----------------------------------------
i've chosen the ISO8601 string representations for the following reasons:
a) smaller footprint
b) immutable (no cloning required)
c) human readable
d) the ISO8601 format is used extensively for serialization
(persistence layer, remoting protocols, xml, etc),
=> getString()/toString() are very effiicient
i've deliberately not chosen a more space-efficient
binary representation because of d)
> improved internal representation of DATE values
> -----------------------------------------------
>
> Key: JCR-2619
> URL: https://issues.apache.org/jira/browse/JCR-2619
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-core, jackrabbit-spi-commons
> Reporter: Stefan Guggisberg
> Fix For: 2.2.0
>
> Attachments:
> JCR-2619_improved_internal_representation_of_DATE_values.patch
>
>
> DATE values are currently internally represented as java.util.Calendar
> objects.
> Calendar objects have a huge memory footprint (approx 200bytes per instance)
> and are mutable.
> i suggest to replace the internal DATE representation with a ISO8601 format
> string
> (immutable and approx. 85-90% smaller footprint).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.