aokolnychyi edited a comment on issue #9: Vectorize reads and deserialize to 
Arrow
URL: https://github.com/apache/incubator-iceberg/issues/9#issuecomment-495802828
 
 
   Another point about the current reader is that we first construct 
`GenericInternalRow`s and then have an unsafe projection to get `UnsafeRow`s. 
   
   Here are benchmark results for readers/writers alone (without Spark):
   
   ```
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetReadersFlatDataBenchmark.readUsingIcebergReader                  
        ss    5  7.336 ± 0.298   s/op
   SparkParquetReadersFlatDataBenchmark.readUsingIcebergReaderUnsafe            
        ss    5  8.533 ± 0.237   s/op
   SparkParquetReadersFlatDataBenchmark.readUsingSparkReader                    
        ss    5  9.859 ± 0.335   s/op
   
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetReadersFlatDataBenchmark.readWithProjectionUsingIcebergReader    
        ss    5  3.964 ± 0.140   s/op
   
SparkParquetReadersFlatDataBenchmark.readWithProjectionUsingIcebergReaderUnsafe 
     ss    5  5.032 ± 0.061   s/op
   SparkParquetReadersFlatDataBenchmark.readWithProjectionUsingSparkReader      
        ss    5  5.076 ± 0.181   s/op
   
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetReadersNestedDataBenchmark.readUsingIcebergReader                
        ss    5  3.925 ± 0.225   s/op
   SparkParquetReadersNestedDataBenchmark.readUsingIcebergReaderUnsafe          
        ss    5  4.514 ± 0.097   s/op
   SparkParquetReadersNestedDataBenchmark.readUsingSparkReader                  
        ss    5  5.673 ± 0.194   s/op
   
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetReadersNestedDataBenchmark.readWithProjectionUsingIcebergReader  
        ss    5  1.914 ± 0.126   s/op
   
SparkParquetReadersNestedDataBenchmark.readWithProjectionUsingIcebergReaderUnsafe
    ss    5  2.408 ± 0.058   s/op
   SparkParquetReadersNestedDataBenchmark.readWithProjectionUsingSparkReader    
        ss    5  2.682 ± 0.165   s/op
   
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetWritersFlatDataBenchmark.writeUsingIcebergWriter                 
        ss    5  4.789 ± 0.168   s/op
   SparkParquetWritersFlatDataBenchmark.writeUsingSparkWriter                   
        ss    5  4.948 ± 0.188   s/op
   
   Benchmark                                                                    
      Mode  Cnt  Score   Error  Units
   SparkParquetWritersNestedDataBenchmark.writeUsingIcebergWriter               
        ss    5  2.750 ± 0.184   s/op
   SparkParquetWritersNestedDataBenchmark.writeUsingSparkWriter                 
        ss    5  2.859 ± 0.222   s/op
   ```
   
   The code is available in the above PR.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to