chessbaseLinux/crates/chess-import/src
vrubelroman f694bc768b Web version: databases read in a worker, the shelf's counts, Chrome and Edge remember chosen files
The page's reader: a Web Worker with a second instance of the program reads
a database (PGN, CBV, ZIP, 7Z) and gives back its text and index; the page
puts it together without reading it again (chess_core::PgnIndex,
PgnDatabase::into_index / from_index, serde behind a feature). A 13 MB CBV:
the longest frame 17 ms in Firefox, 67 ms in Chromium (1000 ms before).
platform::open_database is the same on both sides: away from the screen,
done when read. The shelf's cards count the games the same way (one file
at a time); the counts are kept through platform::fs.

Chrome, Edge (File System Access): a chosen file's handle is kept in the
browser's storage; at the next visit the file is read again by itself when
the browser allows it, else the card offers «Allow reading» (the browser's
own question). Files of different visits get folders of their own.

Checks: t.choose(files, open) for both browsers (in Chromium the handles of
the site's private file system stand for the dialog's); app.mjs checks the
draft, the question on leaving and the remembered file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:50:54 +03:00
..
chessbase Crates for the browser: trainer and play on web-time, Judge everywhere, files closed by scope 2026-10-30 15:09:17 +03:00
archive.rs Open ChessBase databases (.cbh, .cbv) and zip/7z archives 2026-10-18 13:18:27 +03:00
bench.rs Desktop: the filters and position search of ChessBase for every database 2026-10-23 23:39:31 +03:00
cbv.rs Open ChessBase databases (.cbh, .cbv) and zip/7z archives 2026-10-18 13:18:27 +03:00
lib.rs Web version: databases read in a worker, the shelf's counts, Chrome and Edge remember chosen files 2026-10-30 17:50:54 +03:00
memory.rs Opening index for large ChessBase bases (first 10 moves, built with the booster, loaded when memory allows); memory guard for big PGN position tables; CP_MEMORY_LIMIT 2026-10-19 19:24:15 +03:00
parallel.rs uci: the protocol as a machine without I/O, the process as its transport; chess-import: passes and positional I/O on a target without threads 2026-10-30 14:19:21 +03:00
pgn_catalog.rs Desktop: tester's review of the unified view 2026-10-23 23:57:11 +03:00
pgn_positions.rs Position search fixes from QA report 3 2026-10-19 09:03:26 +03:00
position.rs Release 2.1.0 2026-10-28 20:37:06 +03:00