Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/sort FSRSItem by length to speed up training #32

Merged
merged 14 commits into from
Aug 28, 2023
Merged
6 changes: 6 additions & 0 deletions .github/workflows/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ cargo fmt --check || (
)

cargo clippy -- -Dwarnings

install -d tests/data/
pushd tests/data/
wget https://github.com/open-spaced-repetition/fsrs-optimizer-burn/files/12394182/collection.anki21.zip
unzip *.zip
SKIP_TRAINING=1 cargo test
5 changes: 2 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Check code
on:
push:
pull_request:

jobs:
Expand All @@ -16,9 +15,9 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-rust-release-v5-${{ hashFiles('Cargo.lock') }}
key: ${{ runner.os }}-rust-release-v6-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-release-v5
${{ runner.os }}-rust-release-v6
${{ runner.os }}-rust-release
- name: Run checks
Expand Down
105 changes: 53 additions & 52 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ rusqlite = { version = "0.29.0" }
chrono = "0.4.26"
chrono-tz = "0.8.3"
itertools = "0.11.0"
rand = "0.8.5"
Loading
Loading