Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道PDF页面渲染(对于普通技术书籍)中哪些操作花费的时间最多。是字体渲染吗?是对象解析吗?是图形绘制吗?或者还有什么?
以我的经验,解析是次要的,次要的成本。PDF 解析受 I/O 限制。在 Acrobat 的原始版本中,JPEG 解码是最大的成本之一,如果您有使用 DCT 的图像(因为 FPU 不是标准的)。除非打开希腊化,否则抗锯齿字体渲染在小点大小时会很昂贵。对于 PDF 渲染中的每个高成本项目,通常都有一种机制来缓解它(字体缓存、希腊化、路径缓存、空闲时间页面渲染等)。