Github user Lewuathe commented on the pull request:

    https://github.com/apache/spark/pull/3900#issuecomment-69015470
  
    I have done simple investigation between nio channel map and `ByteBuffer` 
copy
    with this 
[JavaNIOTest](https://gist.github.com/Lewuathe/33a3e582cdd268169d40).
    
    ```
    # 650B
    650B file time taken with byte buffer: 2969000 ns
    650B file time taken with channel map: 878000 ns
    
    # 6.5KB
    6500B file time taken with byte buffer: 3026000 ns
    6500B file time taken with channel map: 808000 ns
    65000B file time taken with byte buffer: 3048000 ns
    65000B file time taken with channel map: 861000 ns
    650000B file time taken with byte buffer: 3198000 ns
    650000B file time taken with channel map: 818000 ns
    6500000B file time taken with byte buffer: 4610000 ns
    6500000B file time taken with channel map: 884000 ns
    ```
    
    This test has been done my Mac Pro. Page size is configured as 4096.
    ```
    % getconf PAGESIZE                                                          
                                                                                
                                                                        (master)
    4096
    ```
    
    Of course this is the only simple test, 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to