StractOrg / stract

web search done right
https://stract.com
GNU Affero General Public License v3.0
1.94k stars 43 forks source link

Update dependencies #111

Closed oeb25 closed 8 months ago

oeb25 commented 8 months ago

This PR updates a lot of the dependencies to their latest version.

Honorable mentions are:

I've held back on updating safetensors, tch, and tokenizers as I'm not confident in testing whether updating these cause issues or not. Other than those three crates, everything should be up-to-date!


This was done as an attempt to reduce compile times, and as a huge success (/s) I can confirm that this reduces the number of LLVM lines generated by 4056, which equates to a 0.30983876% decrease!


Benchmarking incremental build times, where only core/src/lib.rs changes, we see little to no difference:

git switch main && cargo build -p stract --bin stract
  Time (mean ± σ):      7.700 s ±  0.081 s    [User: 7.090 s, System: 1.918 s]
  Range (min … max):    7.569 s …  7.855 s    10 runs

git switch update-deps && cargo build -p stract --bin stract
  Time (mean ± σ):      7.837 s ±  0.145 s    [User: 7.301 s, System: 1.948 s]
  Range (min … max):    7.706 s …  8.149 s    10 runs

Summary
  'git switch main && cargo build -p stract --bin stract' ran
    1.02 ± 0.02 times faster than 'git switch update-deps && cargo build -p stract --bin stract'
Lorak-mmk commented 8 months ago

I think now that we merged your fix to Scylla driver, you don't need to use a fork, you could use our main branch, no?

oeb25 commented 8 months ago

Totally @Lorak-mmk!

With that, I think we are ready to merge this!