ankitects / ankitects/anki

Possible improvements for browser startup on large decks

Open
#1,744 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.2k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
72

Description

Re https://forums.ankiweb.net/t/default-browser-search-to-current-card-note-only/17863/9

With multiple hundreds of thousands of cards nested under one primary deck, the search query can take 500ms+ on a fast machine, especially if the sort field column is selected. This compares to about 50ms for no explicit sorting, and about 5ms for a deck with only a few cards.

Previous Anki versions showed only the current card on startup, to avoid this delay in opening. We might want to think about bringing that back, or finding some other way of improving opening time.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Reproduce browser startup with a deck containing hundreds of thousands of cards, compare sorted and unsorted searches, and determine whether restoring current-card-only startup or another approach meets the opening-time goal.

Written by the indexing model from the issue text.

Assessment

Domain
performance, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.