ReadViewSDK/ReadViewDemo
shenlei c4be426299 长章节内存优化 P1:章节级共享显示内容与 layouter,高亮转 overlay
- 新增 RDEPUBChapterDisplayContentCache(LRU 2,主线程限定,控制器
  持有):整章显示串构建时一次性注入全章主题色与暗黑图替换,配套
  共享 DTCoreTextLayouter;签名 = 章节内容对象标识 + 主题双色 +
  暗黑图配置,设置/主题变化自动失效重建
- RDEPUBTextContentView.configure 改为引用共享 entry,删除每次翻页
  的整章可变拷贝与按页属性写入
- 高亮/下划线改走 overlay decoration(高亮背景层、下划线前景层),
  移除 applyHighlightsToContent 与 render view 的属性绘制路径,
  高亮增删不再触发整章重建
- 内存警告时清空 display cache;shouldAvoidReaderPageCaching 保持
  保守(P1-4 待真机数据)

验证:编译通过;高亮/批注/选区/翻页/设置 13 项 UI 回归全过。
SearchTests 10 项失败经二分确认为先存回归(5a41066 与 e4e629a 均
复现,最后已知通过为 2026-06-08),与本次改动无关,待单独排查。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 16:09:40 +09:00
..
Pods 长章节内存优化 P1:章节级共享显示内容与 layouter,高亮转 overlay 2026-07-08 16:09:40 +09:00
ReadViewDemo feat: EPUB 阅读器搜索、选中注释、书签 chrome 状态及大量重构优化 2026-06-13 22:48:56 +08:00
ReadViewDemo.xcodeproj feat: 架构整改 — Context拆分、Runtime拆分、异步章节加载、UI测试覆盖 2026-06-23 08:17:08 +08:00
ReadViewDemo.xcworkspace chore: add .gitignore and remove tracked xcuserdata 2026-06-13 08:02:21 +08:00
ReadViewDemoUITests feat: 交互协调器拆分、附件提示、暗色图片适配、选区放大镜及文档清理 2026-06-24 17:47:24 +08:00
Podfile chore: checkpoint current milestone work 2026-05-22 13:28:53 +08:00
Podfile.lock feat: chapter runtime refactoring and related updates 2026-06-26 18:50:07 +09:00
ViewController.swift docs: 补充注释、修正过时文档、清理重复内容 2026-06-01 09:33:23 +08:00