Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This is #52614
FilterInfo.toData (that was being optimized for murex) does this:
// create a hdos
// write a bunch of stuff to it
byte[] myData = hdos.toByteArray();
DataSerializer.writeByteArray(myData, out);
he toByteArray allocates a new byte array and copies all the data in the hdos to it.
Then writeByteArray writes it all to "out".
We can do this instead:
if (out instanceof HeapDataOutputStream)
else
{ .. do it the old way }