Skip to content

Commit

Permalink
increase cache_size to 1145141919
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 committed Jun 22, 2023
1 parent 295ae57 commit d976a18
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.target }}.tar
tag_name: v0.3.1
tag_name: v0.4.1
prerelease: true

127 changes: 66 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ rayon = "1.5.3"
rust-gmp = "0.5.0"
clap = { version = "3.2.20", features = ["derive"] }
cache-macro = "0.4.1"
lru-cache = "0.1.2"
lazy_static = "1.4.0"
lru-cache = "0.1.2"

[profile.release]
opt-level = 3
panic = "abort"
strip = true
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::ops::Mul;
use gmp::mpz::Mpz;
use rayon::join;

#[cache(LruCache : LruCache::new(1000000))]
#[cache(LruCache : LruCache::new(1145141919))]
fn no_parralel_fib(x: IndexType) -> (Mpz, Mpz) {
if x < 3 {
(Mpz::from(0), Mpz::from(1))
Expand Down

0 comments on commit d976a18

Please sign in to comment.