ReadViewSDK/Doc
shen d20196ee34 feat: configurable chapter window & parallel metadata parsing with benchmark
1. Configurable chapter window size (onDemandChapterWindowSize: 3-15)
   - Parameterized window radius in RDEPUBChapterRuntimeStore
   - Updated RDEPUBChapterWindowCoordinator to use configurable radius
   - RDEPUBChapterWindowSnapshot.from() accepts chapter array instead of fixed prev/next
   - Even numbers round up to odd (4→5), min 3, max 15

2. Configurable metadata parsing concurrency (metadataParsingConcurrency)
   - Default equals CPU core count
   - Parallel execution via OperationQueue in paginateMetadataOnly
   - Each worker creates independent builder instance
   - NSLock protects result aggregation

3. Per-chapter and total wall-clock timing instrumentation
   - Separated render vs I/O timing per chapter
   - Summary log with wallClockMs, renderTotalMs, writeTotalMs, avgRenderMs
   - Timing stored in RDEPUBReaderContext for test access

4. UI automation test infrastructure
   - Added --demo-window-size, --demo-concurrency, --demo-clear-cache launch args
   - DemoReaderState exposes windowSize, parseMs, parseConcurrency
   - ConfigurableWindowTests: 5 test cases for window size 3/5/15
   - ConcurrentParsingTests: 4 test cases for concurrency 2/4
   - MetadataParseBenchmarkTests: serial vs parallel benchmark

5. Bug fixes
   - Fixed page snap-back during background parsing (isUserInteracting check)
   - Reduced BookPageMap refresh frequency from 16 to 32 chapters
   - Moved waitForReadingInteractionToSettle outside operation loop

6. Design doc: dual-layer PageMap (estimated + precise mixed)
2026-06-03 23:38:11 +08:00
..
FeatureSolution refactor(reader): 重构高亮选区绘制架构,对齐 WXRead 实现方案 2026-06-01 20:57:27 +08:00
WXRead docs: 大书优化方案文档与架构分析更新 2026-06-02 21:16:50 +08:00
ARCHITECTURE.md docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00
CODING_STYLE.md docs: 同步 Doc 文档与当前代码状态 2026-05-25 20:31:10 +08:00
EPUB_MAINTENANCE.md docs: 同步 Doc 文档与当前代码状态 2026-05-25 20:31:10 +08:00
EPUBCore_功能实现逻辑.md docs: 同步 Doc 文档与当前代码状态 2026-05-25 20:31:10 +08:00
EPUBTextRendering_功能实现逻辑.md docs: 同步 Doc 文档与当前代码状态 2026-05-25 20:31:10 +08:00
EPUBUI_功能实现逻辑.md docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00
index.md docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00
RDReaderView_功能实现逻辑.md docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00
UI自动化测试工作文档.md feat(reader): 增强阅读器功能与 UI 测试支持 2026-05-31 23:56:54 +08:00
双层PageMap方案_估算加精确混合.md feat: configurable chapter window & parallel metadata parsing with benchmark 2026-06-03 23:38:11 +08:00
大书内存优化方案_元数据缓存与按需加载.md feat: complete large-book pagination runtime and UI coverage 2026-06-03 17:47:16 +08:00
大书快速进入阅读器方案_凡人修仙传.md docs: 大书优化方案文档与架构分析更新 2026-06-02 21:16:50 +08:00
架构对比分析_WXRead_vs_ReadViewSDK.md docs: 大书优化方案文档与架构分析更新 2026-06-02 21:16:50 +08:00
阅读器功能开发计划.md docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00