Skip to content

perf(renderer): enhance CommonRenderer and resource management#552

Open
fllesser wants to merge 4 commits into
masterfrom
perf/common-renderer/resource
Open

perf(renderer): enhance CommonRenderer and resource management#552
fllesser wants to merge 4 commits into
masterfrom
perf/common-renderer/resource

Conversation

@fllesser
Copy link
Copy Markdown
Owner

  • Introduced CommonRenderer for unified rendering of content.
  • Added asset management functions to load resources such as fonts and images.
  • Created typography and asset modules to handle font metrics and resource loading.
  • Updated tests to ensure proper functionality of the new rendering system.

- Introduced CommonRenderer for unified rendering of content.
- Added asset management functions to load resources such as fonts and images.
- Created typography and asset modules to handle font metrics and resource loading.
- Updated tests to ensure proper functionality of the new rendering system.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

类型 PIL 耗时(秒) HTML 耗时(秒) 渲染所用图片总大小(MB) PIL 导出图片大小(MB) HTML 导出图片大小(MB)
微博视频2 0.01118 0.78858 0.01280 0.03541 0.18327
微博视频 0.01487 0.79357 0.01280 0.03432 0.18050
微博纯文2 0.03393 0.89167 0.00605 0.12023 0.35956
微博转发纯文 0.07123 1.09546 0.01180 0.24083 0.70613
哔哩哔哩动态(包含emoji) 0.23018 1.86510 0.01244 0.18507 0.55960
B站转发动态 0.23278 1.61937 0.37278 0.38265 1.42482
微博图集(2张) 0.37650 1.18150 4.88308 0.64458 2.21195
微博图集(4张) 0.45576 1.80416 2.34023 0.72816 2.45148
B站动态 0.54683 3.08737 0.00653 1.34777 3.51336
微博图集(9张) 1.31963 2.14358 10.98936 0.98579 3.08158

fllesser added 3 commits May 28, 2026 12:11
- Moved EMOJI_SOURCE initialization to the assets module for better resource management.
- Updated CommonRenderer to utilize the new EMOJI_SOURCE from assets, improving code organization and maintainability.
- Introduced new font module to handle font metrics and styles for card components.
- Updated CommonRenderer to utilize the new font metrics for improved text rendering.
- Refactored asset imports to streamline resource management and enhance code organization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant