Anki/rslib/src
user1823 5e7cf1f9df
Update iterators to use filter instead of take_while
After the changes in sort_learning, the learning queue is no longer sorted purely by the due timestamp when the queue contains never-attempted cards. This breaks take_while and skip_while, which stop at the first card that doesn't match the condition, potentially skipping cards that are actually due now.

Using filter has a potential performance impact because all intraday learning cards must now be processed instead of just the ones that are within the cutoff. But, in practice, the impact is negligible because filtering is extremely fast and manual testing with large queues showed no noticeable difference. The correct behavior is worth the minimal trade-off.
2026-01-06 18:07:21 +05:30
..
ankidroid lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
ankihub Bump AnkiHub API version (#3564) 2024-11-09 04:05:26 +03:00
backend Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
card Add last_review_time to card data for performance and accuracy (#4124) 2025-07-08 00:41:01 +07:00
card_rendering Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
collection feat: show saved custom colours as options in fill tool colour picker on mobile (#4348) 2025-09-25 06:34:27 +03:00
config feat: show saved custom colours as options in fill tool colour picker on mobile (#4348) 2025-09-25 06:34:27 +03:00
deckconfig Fix/recompute memory state when deck-specific DR is changed (#4293) 2025-09-01 15:07:35 +10:00
decks Add desired_retention field to NormalDeckSchema11 (#4292) 2025-09-02 17:55:23 +10:00
error Update to Rust 1.88 2025-06-29 11:50:49 +07:00
i18n Refactor service generation (#2552) 2023-06-19 15:33:40 +10:00
image_occlusion Update to Rust 1.88 2025-06-29 11:50:49 +07:00
import_export Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
media Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
notes Show the number of cards added when adding (#4310) 2025-09-02 18:06:49 +10:00
notetype Fix notetype original_stock_kind using wrong enum (#4382) 2025-10-09 01:50:50 +03:00
revlog Export last_interval to Python (#4365) 2025-09-27 15:58:41 +10:00
scheduler Update iterators to use filter instead of take_while 2026-01-06 18:07:21 +05:30
search feat: add support for tag:nc:... searches (#4344) 2025-09-25 07:11:07 +03:00
stats Export last_interval to Python (#4365) 2025-09-27 15:58:41 +10:00
storage Feat/Prioritize previously attempted cards in intraday learning queue 2025-10-16 13:12:32 +00:00
sync Add last_review_time to card data for performance and accuracy (#4124) 2025-07-08 00:41:01 +07:00
tags Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
undo Fix maybe_coalesce_note_undo_entry() (#2992) 2024-02-11 16:04:10 +10:00
adding.rs Default to current deck in csv import if settings allow it (#2527) 2023-05-31 13:47:12 +10:00
browser_table.rs Improve elapsed seconds calculation for learning cards in browser table (#4255) 2025-08-09 16:16:36 +10:00
cloze.rs Add syntax for multi-card cloze deletions (#4333) 2025-09-28 18:56:07 +03:00
dbcheck.rs Fix Cards with Missing Last Review Time During Database Check (#4237) 2025-08-06 19:49:30 +10:00
findreplace.rs Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
latex.rs Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
lib.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
links.rs Remove remaining remnants of unused error; fix CI 2024-11-19 15:26:02 +10:00
log.rs Update to Rust 1.88 2025-06-29 11:50:49 +07:00
markdown.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
ops.rs Refactor: Make Load Balancer Optional Throughout Codebase (#3860) 2025-03-26 23:19:28 +10:00
preferences.rs Feat/option to enable FSRS short-term scheduler when (re)learning steps run out && speed up features based on simulation (#3505) 2024-10-21 15:09:07 +10:00
prelude.rs Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
progress.rs Fix/re-optimize FSRS if short-term param is weird (#3742) 2025-01-26 10:42:17 +11:00
serde.rs Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
services.rs Rust 1.73 2023-10-09 19:22:43 +10:00
template.rs Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
template_filters.rs Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
tests.rs Fix flaky tests (#3724) 2025-01-13 13:56:52 +11:00
text.rs Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
timestamp.rs Feat/Desired retention info graphs (#4199) 2025-07-28 18:55:08 +10:00
typeanswer.rs Fixes for Rust 1.89 2025-09-01 14:55:49 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00