Github user zero323 commented on the pull request:

    https://github.com/apache/spark/pull/9099#issuecomment-147826281
  
    @felixcheung Here you are:
    
    Spark 1.5.1
    
    ```
    dt <- data.table::fread("flights.csv")
    microbenchmark::microbenchmark(createDataFrame(sqlContext, dt), times=3)
    
    ##                             expr      min       lq     mean  median      
 uq
    ##  createDataFrame(sqlContext, dt) 378.8534 379.4482 381.2061 380.043 
382.3825
    ##      max neval
    ##  384.722     3
    ```
    
    It looks a little bit to good to be true, but as far as I can tell 
everything works as expected.
    
    Patched master:
    
    ```
    dt <- data.table::fread("flights.csv")
    microbenchmark::microbenchmark(createDataFrame(sqlContext, dt), times=3)
    
    ##                             expr      min       lq     mean   median     
  uq
    ##  createDataFrame(sqlContext, dt) 5.196731 5.512982 5.674607 5.544245 
5.959565
    ##       max neval
    ##  6.159512     5
    ```


---
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