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

Pavel  Tupitsyn commented on IGNITE-1835:
-----------------------------------------

I'm not sure about shrinking. If the array has come to a certain size, it 
happened for a reason, and it will probably happen again. Doing 2 reallocations 
of an array on each write will perform poorly. 

And we are talking about laughable savings here. In Java there is a 256*4=1KB 
limit for the buffer.

> .Net: Use thread-local pool to store schemas in PortableWriter
> --------------------------------------------------------------
>
>                 Key: IGNITE-1835
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1835
>             Project: Ignite
>          Issue Type: Task
>          Components: interop
>    Affects Versions: 1.5
>            Reporter: Pavel  Tupitsyn
>            Assignee: Pavel  Tupitsyn
>             Fix For: 1.5
>
>
> Avoid array allocations in PortableWriter by keeping a single ThreadLocal 
> array to store schema fields.
> See SchemaHolder in Java.



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

Reply via email to