Improve Map*Dao memory allocations [BATCH-2650] #953
Labels
in: core
status: declined
Features that we don't intend to implement or Bug reports that are invalid or missing enough details
type: enhancement
Benoit opened BATCH-2650 and commented
When using a MapJobRepository the daos :
are allocating unneeded memory when performing the object deep copy (see static copy methods)
First when re-allocating the internal buffer of the ByteArrayOutputStream
Then when copying it through ByteArrayOutputStream#toByteArray()
Those allocations show up when profiling our batch executions
I'd like to provide an efficient deep copy method based on classes available since spring 4.2
I'm ready to do the PR but where should I create this new method (to be shared between the Map*Dao) ?
Affects: 3.0.8, 4.0.0.RC1
The text was updated successfully, but these errors were encountered: