Anki/proto/anki
Damien Elmes 37151213cd Move more of the graph processing into the backend
The existing architecture serializes all cards and revlog entries in
the search range into a protobuf message, which the web frontend needs
to decode and then process. The thinking at the time was that this would
make it easier for add-ons to add extra graphs, but in the ~2.5 years
since the new graphs were introduced, no add-ons appear to have taken
advantage of it.

The cards and revlog entries can grow quite large on large collections -
on a collection I tested with approximately 2.5M reviews, the serialized
data is about 110MB, which is a lot to have to deserialize in JavaScript.

This commit shifts the preliminary processing of the data to the Rust end,
which means the data is able to be processed faster, and less needs to
be sent to the frontend. On the test collection above, this reduces the
serialized data from about 110MB to about 160KB, resulting in a more
than 2x performance improvement, and reducing frontend memory usage from
about 400MB to about 40MB.

This also makes #2043 more feasible - while it is still about 50-100%
slower than protobufjs, with the much smaller message size, the difference
is only about 10ms.
2022-12-16 21:42:17 +10:00
..
backend.proto Fix typos (#2210) 2022-11-24 20:18:57 +10:00
card_rendering.proto Partially migrate type answer to backend 2022-07-22 19:28:34 +10:00
cards.proto Add card meta for persisting custom scheduling state (#2040) 2022-09-02 11:22:49 +10:00
collection.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
config.proto Remember previous choices in reposition dialog (#1950) 2022-07-08 11:28:38 +10:00
deckconfig.proto Remove untranslated 'see old deck options' notice 2022-11-03 12:05:19 +10:00
decks.proto Add non-legacy backend interface for adding new decks 2022-09-04 14:12:29 +10:00
generic.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
i18n.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
import_export.proto Since DupeResolution is in CsvMetadata, we don't need to pass it separately 2022-06-27 17:15:54 +10:00
links.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
media.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
notes.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
notetypes.proto Introduce setting to collapse field by default (#1990) 2022-08-31 23:34:39 +10:00
scheduler.proto Fix typos (#2210) 2022-11-24 20:18:57 +10:00
search.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
stats.proto Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
sync.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
tags.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00