[dna-issues] [JBoss JIRA] Updated: (DNA-261) Improve how Binary values are created and managed

Randall Hauch (JIRA) jira-events at lists.jboss.org
Thu Jan 15 22:31:04 EST 2009


     [ https://jira.jboss.org/jira/browse/DNA-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch updated DNA-261:
------------------------------

    Fix Version/s: Future Releases
                       (was: 0.4)


Retargeting this to 0.5, since we've already added methods to the BinaryFactory interface for creating binary objects from a File.  This is probably sufficient for the time being, but we can provide in the future a new implementation that incorporates the benefits described in this issue.

> Improve how Binary values are created and managed
> -------------------------------------------------
>
>                 Key: DNA-261
>                 URL: https://jira.jboss.org/jira/browse/DNA-261
>             Project: DNA
>          Issue Type: Feature Request
>          Components: Graph
>            Reporter: Randall Hauch
>            Priority: Minor
>             Fix For: Future Releases
>
>
> The current InMemoryBinaryValueFactory is creating separate InMemoryBinary objects each time 'create(...)' is called.  We should have a Binary factory (and corresponding Binary implementations) that caches the in-memory values using the content's hash as a key.  While this may slightly degrade performance (since the hash would be computed immediately rather than lazily if needed), it could result in more efficient use of memory.  Note that we'd probably have to use weak or soft references inside the Binary object to the cached values, so that as the Binary objects are garbage collected, the cache can remove the unused values.
> Another potential improvement is to store large values on disk, and to memory-map them using direct buffers.  This would keep large values (e.g., gigabyte-sized values, such as those used to represent very large files) out of memory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list