outbrain / fwumious_wabbit

Fwumious Wabbit, fast on-line machine learning toolkit written in Rust
Other
134 stars 19 forks source link

Aligned compilation procedure + less logs #78

Closed SkBlaz closed 1 year ago

SkBlaz commented 1 year ago

This PR includes:

  1. Cleaned up Cargo.toml containing --release build config that appears to offer fast and small binaries
  2. Updated profile.release with explicit flags suitable for optimized binaries (lto does not seem to help btw)
  3. Removed logs related to reference counting/layer logging (we still have logs related to hpo switches etc.)
  4. Added build.sh that enables simpler experimentation with a given set of RUSTFLAGS (documented in this file how to switch the flags if necessary)
  5. Added (but commented out currently) jemallocator for more consistent memory allocation - usefulness of this is a bit hardware dependent though

The subsequent PR will be aimed at having a logging framework so the currently removed logs can be obtained, should the need arise.