文档介绍:Performance Optimization For XPS Documents
Feng Yuan
Principal Software Development Engineer
Microsoft Corporation
Key Takeaways
Raise awareness of XPS document performance issues
Demonstrate how to measure XPS documents
Demonstrate how to optimize XPS documents
Agenda
Performance issues with XPS documents
Metrics for XPS documents
XPS measuring tool
Optimizing XPS documents
FixedPage
Font
Image
Call To Action
Generation
Transmission
Archiving
Searching
Viewing
Printing
Discarding
XPS Document Life Cycle
Activities On XPS Document
Transmission
Zip container decoding
Stream pression
Object model building
Document structure construction
Rendering
Conversion
Searching
Impact Of Non-Optimized XPS
Larger storage requirement
work bandwidth requirement
Slower downloading
Slower viewing
Slower printing
Unable to view or print
Performance Measures
XPS document size
Loading time
Memory consumption
Rendering time
Searching time
Performance Metrics
Container: Original size, compression, number of streams, order of streams, interleaving
Markup: Number of elements, number of attributes, nesting of opacity, area of opacity, sharing of objects
Image: Resolution, pixel format, file format, compression
Font: Tables, glyphs
XPS Package
XPS Package Relationships
Common Package Parts
Document Structure
Font
Thumbnail
Resource Dictionary
Core Properties
Thumbnail
Signature Origin
Signature
X509 Certificate
Fixed Document Sequence
Fixed Document
FixedPage
FixedPage
Resources
Optional
Parts
Required or
mended
Parts
Relationship
Image
Measuring XPS: XpsStat
Type
Count
Original
Compressed
Ratio
fixedpage
453
116,521,006
5,912,474
95%
434
573,558
164,871
71%
properties
1
673
342
49%
fixeddocument
1
289,702
13,756
95%
opentype
20
1,647,572
576,144
65%
Image
492
1,042,993
992,681
5%
fixeddocumentsequence
1
320
160
50%
documentstructure
1
179,194
13,154
93%
/[Content_Types]
1
1,023
331