Kimahriman / hdfs-native

Apache License 2.0
33 stars 12 forks source link

Use faster CRC implementation #78

Closed Kimahriman closed 9 months ago

Kimahriman commented 9 months ago

Using flamegraph, I discovered that most of the read/write time was spent doing CRC calculations. Using the new beta of the crc crate and it's slice16 support, this greatly increases the CRC throughput which in turn greatly speeds up the read and write throughput. The read throughput is now equal to or slightly higher than the libhdfs method. The write is still a little behind, need to look into that more.