Display Object Pre-Generation
AssigneeFacebook, Inc.
InventorJonathan M. Kaldor
Life of this patent
Estimating the term…
Abstract
In one embodiment, a computing device identifies a portion of a display object to pre-generate. The device may monitor a thread to identify the next upcoming window of idle time (i.e., the next opportunity when the thread will be idle for a minimum period of time). The device may add one or more selected pre-generation tasks to a message queue for execution by the thread during the window. The device may execute the one or more selected pre-generation tasks in the message queue by pre-generating at least one selected element of a display object with content for a portion of the content layout, and then return the display object.
Claims20
A method comprising:
- by a computing device, identifying a portion of a display object to pre-generate;
- by the computing device, monitoring a thread to identify a next window of idle time, the next window of idle time comprising the next opportunity when the thread will be idle for a minimum period of time;
- by the computing device, adding one or more selected pre-generation tasks to a message queue for execution by the thread during the next window of idle time;
- by the computing device, executing the one or more selected pre-generation tasks in the message queue by pre-generating at least one selected element of a display object with content for a portion of a content layout, the display object being associated with the content layout;
- and
- by the computing device, returning the display object.
One or more computer-readable non-transitory storage media embodying software that is operable when executed by a computing device to:
- identify a portion of a display object to pre-generate;
- monitor a thread to identify a next window of idle time, the next window of idle time comprising the next opportunity when the thread will be idle for a minimum period of time;
- add one or more selected pre-generation tasks to a message queue for execution by the thread during the next window of idle time;
- execute the one or more selected pre-generation tasks in the message queue by pre-generating at least one selected element of a display object with content for a portion of the content layout, the display object being associated with the content layout;
- and
- return the display object.
A computing device comprising:
- one or more processors;
- and
- a memory coupled to the processors comprising instructions executable by the processors, the processors being operable when executing the instructions to:
- identify a portion of a display object to pre-generate;
- monitor a thread to identify a next window of idle time, the next window of idle time comprising the next opportunity when the thread will be idle for a minimum period of time;
- add one or more selected pre-generation tasks to a message queue for execution by the thread during the next window of idle time;
- execute the one or more selected pre-generation tasks in the message queue by pre-generating at least one selected element of a display object with content for a portion of the content layout, the display object being associated with the content layout;
- and
- return the display object.
Dependencies are inferred from the claim text.