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

Aaron Smuts closed JCS-3.
-------------------------


This enhancement has been applied for some time now.  Closing issue.

> File Optimization expensive in memory and disk space
> ----------------------------------------------------
>
>                 Key: JCS-3
>                 URL: https://issues.apache.org/jira/browse/JCS-3
>             Project: JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>         Environment: Any
>            Reporter: Peter Schwarz
>         Assigned To: Aaron Smuts
>             Fix For: jcs-1.2.7.9
>
>         Attachments: indexed-disk.patch, indexed-disk.patch, 
> IndexedDisk.java, IndexedDiskCache.java, IndexedDiskDumper.java, 
> IndexedDiskElementDescriptor.java, StandardSerializer.java
>
>
> The file optimization for the IndexedDiskCache creates a duplicate of the 
> cache file.  In deployments with large volumes of data this doubling of disk 
> usage can be problematic.  If this could be done inside the single file, it 
> would be easier on the disk. 
> Additionally, OutOfMemoryErrors are common due to the deserializing and 
> reserializing of the objects in the cache.  Given the the size in bytes of 
> each object in the file is known (it's part of the record), the objects could 
> be moved in the file without recreating an instance of the object in memory.  
> The use of a single buffer for reading and then writing the data (to either 
> the same file or a new one) would be much more efficient for handling this 
> optimization.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to