US2013318435A1PendingUtilityA1

Load-Time Memory Optimization

Assignee: MICROSOFT CORPPriority: Apr 4, 2008Filed: Aug 2, 2013Published: Nov 28, 2013
Est. expiryApr 4, 2028(~1.7 yrs left)· nominal 20-yr term from priority
G06F 40/221G06F 40/131G06F 16/81G06F 40/143G06F 17/2247
48
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

Various embodiments can be used to process packages or documents that contain markup language describing one or more documents. Markup language descriptions can be processed to identify certain objects that reoccur or are repeated in the markup language description. If a re-occurring or repeating object is encountered in the markup language description, a resource dictionary can be used to catalog such objects and, an associated object model can include, from the resource dictionary, references to a re-occurring or repeating object. By using the resource dictionary as such, memory resources can be conserved when an in-memory representation of the object model is built.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A computer-implemented method comprising:
 inserting a resource key in an object model for objects that occur in a document markup associated with a document   determining non-reoccurring objects in the document markup; and   inserting an associated object in the object model in place of an associated resource key for the non-reoccurring objects.   
     
     
         2 . The computer-implemented method of  claim 1 , further comprising modifying a reference count, in a resource dictionary associated with the object model, for objects that reoccur in the document markup. 
     
     
         3 . The computer-implemented method of  claim 2 , wherein the modifying the reference count comprises initializing the reference count to one the first time that a particular object is encountered in the document markup. 
     
     
         4 . The computer-implemented method of  claim 3 , wherein the modifying the reference count further comprises incrementing the reference count each additional time that the particular object is encountered in the document markup. 
     
     
         5 . The computer-implemented method of  claim 2 , wherein the determining non-reoccurring objects comprises examining the reference count associated with each object in the resource dictionary to determine whether the object reoccurs in the document markup. 
     
     
         6 . The computer-implemented method of  claim 1 , wherein the inserting the resource key is performed in a first pass, and wherein the determining non-reoccurring objects is performed in a second pass. 
     
     
         7 . The computer-implemented method of  claim 1 , wherein said document conforms to an XML Paper Specification. 
     
     
         8 . The computer-implemented method of  claim 1 , wherein the markup language comprises XAML. 
     
     
         9 . A computing device comprising:
 at least a memory and a processor to implement a load time optimizer, the load time optimizer configured to:
 determine non-reoccurring objects of interest in a document markup associated with a document; and 
 insert an associated object in an object model in place of an associated resource key for the non-reoccurring objects of interest. 
   
     
     
         10 . The computing device of  claim 9 , wherein the load time optimizer is further configured to modify a reference count, in a resource dictionary, for objects of interest that reoccur in the document markup. 
     
     
         11 . The computing device of  claim 10 , wherein the load time optimizer is configured to modify the reference count by initializing the reference count to one the first time that a particular object of interest is encountered in the document markup. 
     
     
         12 . The computing device of  claim 11 , wherein the load time optimizer is configured to modify the reference count by incrementing the reference count each additional time that the particular object of interest is encountered in the document markup. 
     
     
         13 . The computing device of  claim 10 , wherein the load time optimizer is configured to determine the non-reoccurring objects of interest by examining the reference count associated with an object in the resource dictionary to determine whether the object reoccurs in the document markup. 
     
     
         14 . The computing device of  claim 9 , wherein the load time optimizer is further configured to, in a first pass, insert resource keys in the object model for objects of interest that occur in the document markup associated with the document prior to determining the non-reoccurring objects of interest in a second pass. 
     
     
         15 . A computer-readable storage medium comprising instructions stored thereon that, responsive to execution by a processor, implement a load time optimizer, the load time optimizer configured to perform operations comprising:
 receiving a document markup associated with a document;   making entries in a resource dictionary for objects of interest occurring in the document markup;   inserting a resource key associated with each object of interest in an object model associated with the document;   determining non-reoccurring objects of interest in the document markup; and   for each non-reoccurring object of interest, replacing an associated resource key of the non-reoccurring object of interest with the non-reoccurring object.   
     
     
         16 . The computer-readable storage medium of  claim 15 , wherein the load time optimizer is further configured to perform operations comprising modifying a reference count, in a resource dictionary associated with the object model, for objects of interest that reoccur in the document markup. 
     
     
         17 . The computer-readable storage medium of  claim 16 , wherein the load time optimizer is configured to modify the reference count by initializing the reference count to one the first time that a particular object of interest is encountered in the document markup. 
     
     
         18 . The computer-readable storage medium of  claim 17 , wherein the load time optimizer is further configured to modify the reference count by incrementing the reference count each additional time that the particular object of interest is encountered in the document markup. 
     
     
         19 . The computer-readable storage medium of  claim 16 , wherein the determining non-reoccurring objects comprises examining the reference count associated with each object in the resource dictionary to determine whether the object reoccurs in the document markup. 
     
     
         20 . The computer-readable storage medium of  claim 15 , wherein said document conforms to an XML Paper Specification.

Join the waitlist — get patent alerts

Track US2013318435A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.