Bug #3465

Immutable deserialization for databoard variants by default /Tu

Added by Tuukka Lehtonen over 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:4Due date:
Assignee:Tuukka Lehtonen% Done:

100%

Category:DataboardSpent time:-
Target version:2012-9
Release notes:
Story pointsS
Velocity based estimate-
ReleaseSimantics 1.6Release relationshipAuto

Associated revisions

Revision 25042
Added by Tuukka Lehtonen over 5 years ago

Changed databoard VariantSerializer to be immutable by using Bindings.getBinding instead of Bindings.getMutableBinding.
The previous implementation of VariantSerializer was copied to MutableVariantSerializer as is.

This was done because using mutable bindings for large data, such as large byte[] arrays would cause the serializer to create
ArrayList<Byte> where each single Byte would take up 17 bytes of actual memory from the JVM thus causing OOM really quickly
even with relatively small arrays. Besides, all other deserializers in DefaultSerializerFactory were immutable but VariantSerializer
was mutable for no apparent reason.

fixes #3465

History

#1 Updated by Tuukka Lehtonen over 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r25042.

#2 Updated by Tuukka Lehtonen over 5 years ago

Applied in changeset r25042.

#3 Updated by Tuukka Lehtonen over 5 years ago

  • Status changed from Resolved to Closed

#4 Updated by Tuukka Lehtonen over 5 years ago

  • Category set to Databoard

#5 Updated by Tuukka Lehtonen almost 5 years ago

  • Assignee set to Tuukka Lehtonen

Also available in: Atom PDF