Optimized generalized data value generation ser/deser, when Byteable (i. e. direct impl) is given

This commit is contained in:
leventov
2014-12-27 17:50:21 +07:00
parent b6ec1598e8
commit cf5ae63e84
7 changed files with 319 additions and 137 deletions
@@ -108,7 +108,10 @@ final class SerializationBuilder<E> implements Cloneable, Serializable {
DataValueModel<E> model = DataValueModels.acquireModel(eClass);
int size = DataValueGenerator.computeNonScalarOffset(model, eClass);
reader(reader);
writer(writer);
copyingInterop(null);
setInterop(writer);
metaInterop((MetaBytesInterop<E, ?>) DataValueMetaBytesInterop.forIdentity(role));
metaInteropProvider(DataValueMetaBytesInterop.interopProvider(eClass));
sizeMarshaller(constant((long) size));
return;
} catch (Exception e) {