Menu

Tree [r17] /
 History

HTTPS access


File Date Author Commit
 src 2010-12-02 cvezga [r16] Version info update
 test 2010-11-25 cvezga [r14]
 README.txt 2010-12-02 cvezga [r17]
 license.txt 2010-11-02 cvezga [r6]

Read Me

SwapList - Java paged list
==========================

(http://swaplist.sourceforge.net)

Author: Cesar Vezga - vcesar@yahoo.com


SwapList implements a paged java.util.List interface that swaps to temporary disk files 
avoiding to use large quantities of memory.


* How does it works?
  
  SwapList swaps paged list into a file disk in order to keep memory usage low.
  
  Example:
            SwapList sl = new SwapList(500); // Creates an instance that allows a maximum of 500 items per swap page in memory
            
  By the example above, you can have a very big list, but will only allocate memory for 500 items. This will prevent out-of-memory error.
  
* Why should I use this instead of implementing my own paging logic?

  In case you are using a third party library that you can not modify, this might be handy.
  This was implemented because of this need, since a third party XML's library parser that was already implemented in a project
  was throwing out-of-memory exception when parsing big XMLs files. This is a fast solution that won't have a big impact in your implementation. 
  
  
  
     
             
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.