GitHub user countmdm opened a pull request:

    https://github.com/apache/spark/pull/21811

    [SPARK-24801][CORE] Avoid memory waste by empty byte[] arrays in 
SaslEncryption$EncryptedMessage

    ## What changes were proposed in this pull request?
    
    Initialize SaslEncryption$EncryptedMessage.byteChannel lazily,
    so that empty, not yet used instances of ByteArrayWritableChannel
    referenced by this field don't use up memory.
    
    ## How was this patch tested?
    
    Ran all the tests locally.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/countmdm/spark misha/spark-24801

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21811.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21811
    
----
commit 8b465341314b1cbbef726950d589d5fb49db341b
Author: Misha Dmitriev <misha@...>
Date:   2018-07-18T21:57:27Z

    [SPARK-24801][CORE] Avoid memory waste by empty byte[] arrays in 
SaslEncryption$EncryptedMessage
    
    Initialize SaslEncryption$EncryptedMessage.byteChannel lazily,
    so that empty, not yet used instances of ByteArrayWritableChannel
    referenced by this field don't use up memory.
    
    Ran all the tests locally.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to