[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15727095#comment-15727095
 ] 

Taewoo Kim commented on ASTERIXDB-1746:
---------------------------------------

Fixed: toByteArray() was changed to getByteArray(). One issue was that for the 
closed part build, RecordBuilder uses synchronized methods, for the open part 
build, RecordBuilder uses non-synchronized method. I don'y why this is the case.

> Excessive new byte[] array constructions during record writes using 
> RecordBuilder.write()
> -----------------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1746
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1746
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Taewoo Kim
>            Assignee: Taewoo Kim
>
> During a record write using RecordBuilder.write(), it allocates two new 
> byte[] using toByteArray() method. The consequence of this is allocating a 
> lot of new byte[] array, thus may lead an excessive garbage collection. It 
> can be replaced as getByteArray() method. The fix will be soon uploaded.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to