Github user mridulm commented on the pull request:

    https://github.com/apache/spark/pull/266#issuecomment-40273651
  
    I think we can replace it with a custom impl - where we decide that it is 
ok to "waste" some memory within some threshold in case the copy is much more 
expensive - particularly given that most of this is almost immediately used and 
thrown away.
    For example, if the size > X bytes and wastage (capacity - size) < Y% of 
capacity.
    What we save from reallocating and compaction is not worth the effort.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to