polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Prototype cloning?
Date Fri, 22 May 2015 04:58:17 GMT
There is this sub-optimal section in the ValueBuilderWithPrototype.java

    // @TODO there is probably a more efficient way to do this
    ValueSerialization valueSerialization = currentModule.valueSerialization();
    String serialized = valueSerialization.serialize( prototype );
    value = valueSerialization.deserialize( valueModel.valueType(), serialized);

And this approach is of course a performance hog, as well as introducing a
strange problem about initializing ValueComposites with Associations.

And it should be required to clone via serialization, but I understand that
the effort might be substantial... Any takers??

Cheers
-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message