andishgar commented on PR #46230:
URL: https://github.com/apache/arrow/pull/46230#issuecomment-4609943363

   @pitrou, several notes:
   
   1. My definition for memory spike is allocation and deallocation of a 
considerable amount of temporary memory for a long time.
   2. In the below code, the offset buffer is already allocated; however, it is 
deallocated and allocated again (that is why I called it a memory spike). A 
similar problem exists in the other string cast kernel as I mentioned 
[here](https://github.com/apache/arrow/pull/46230#issuecomment-2838025640).  
      
https://github.com/apache/arrow/blob/7bddb8338a2f7da7c9b274c937a45c6bead4ac72/cpp/src/arrow/compute/kernels/scalar_cast_string.cc#L253-L255
    3. regarding this 
    >Which memory spikes exactly? Was a bug reported somewhere for it?
    
    I reported this issue 
[here](https://github.com/apache/arrow/issues/46177#issue-3003593798); however, 
it was very vague. I'm sorry for that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to