facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.48k stars 712 forks source link

Make compilation faster #1300

Closed mdcallag closed 1 year ago

mdcallag commented 1 year ago

From an experiment with single-threaded (make -j1) builds it takes 5294 seconds to compile upstream MySQL 8.0.32 from source versus 8443 for FB MySQL 8.0.28. The difference is mostly from the RocksDB build targets (rocksdb_se, ldb, sst_dump) which account for ~2700 seconds (~900 seconds each).

Each of the RocksDB build targets recompiles RocksDB from source. Avoiding that (only compiling RocksDB once) would reduce the build time by ~20%.

mdcallag commented 1 year ago

Fixed by https://github.com/facebook/mysql-5.6/commit/35a178add15f153c0d8dedb687c2299bd5149af3