vijayakumar palaniappan | 20 Jun 2005 11:40
Picon
Favicon

DataFactory changes for Performance improvement

Hi,
Better formatted diffs as attachment.

net.outer_planes implementation of Stream is a
DataFactoy  by itself, Since AbstractStream extends
from DataFactory.  
Since DataFactory data remains the same most of the
time,  we can optimize memory by sharing the base set
of Registered elements and namespace mappings.

if we do create lot of streams in the same JVM, then
it certainly saves lot of memory.

I have modified the Datafactory to hold a reference to
a base datafactory, which is readonly. If a specific
stream adds new elements or namespaces, new
datastructures are created appropriately.

Attached the diffs. These diffs are against 0.13.2
version

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
DataFactory diff
---------------
15a16
> import java.util.Collections;
(Continue reading)


Gmane