Abstract:
In one embodiment, a computing device receives receive a request for particular content associated with an application. The device may determine, based on a first recycling policy associated with a first recycler, that the first recycler associated with the application includes a display object that is capable of being used for containing the particular content. The device may encapsulate the display object with the particular content in a wrapper object and return the wrapper object encapsulating the display object in response to the request. The device may receive an indication that the display object is no longer needed, and extract the display object from the wrapper object. The display object may be stored in the first recycler. The wrapper object without the display object may be disposed in accordance with a second recycling policy associated with a second recycler associated with an operating system of the computing device.
Abstract:
A computing device receives a request for content for a content layout in a displayable region of a screen associated with the device. The device determines, based on application-tailored recycling policies, whether a recycler includes a display object that is suitable for recycling or re-use. If it does not, the device creates the display object and fills it with the content. If it does, and if the display object contains the content, the device updates elements of the display object as needed; otherwise, if the display object does not contain the content, the device fills the display object with the content and returns it. The recycling or re-using may also be performed with sub-elements of a display object, some of which may comprise nested display objects.
Abstract:
In one embodiment, a computing device receives receive a request for particular content associated with an application. The device may determine, based on a first recycling policy associated with a first recycler, that the first recycler associated with the application includes a display object that is capable of being used for containing the particular content. The device may encapsulate the display object with the particular content in a wrapper object and return the wrapper object encapsulating the display object in response to the request. The device may receive an indication that the display object is no longer needed, and extract the display object from the wrapper object. The display object may be stored in the first recycler. The wrapper object without the display object may be disposed in accordance with a second recycling policy associated with a second recycler associated with an operating system of the computing device.
Abstract:
In one embodiment, a computing device detects an event corresponding to a change in a graphical user interface displayed by the computing device; the computing device identifies at least one operation based on the detected event; the computing device determines a state of the identified operation; the computing device also defers the identified operation based at least in part on the determined state.
Abstract:
A social networking system presents a viewing user with a newsfeed of stories describing actions performed by other social networking system users. In particular, the social networking system provides a pre-fetched set of newsfeed stories to a user device of the viewing user and a presentation order for the stories. The social networking system does not “lock” the set of newsfeed stories or the presentation order. The user device locally stores the pre-fetched ranked set of newsfeed stories upon receipt. When the viewing user later requests presentation of newsfeed stories, the user device retrieves the set of newsfeed stories and presents, to the viewing user, stories from the set according to the presentation order. A request is also sent to the social networking system to “lock” the presented newsfeed stories and the order in which the newsfeed stories were presented.
Abstract:
A social networking system presents a viewing user with a newsfeed of stories describing actions performed by other social networking system users. In particular, the social networking system provides a pre-fetched set of newsfeed stories to a user device of the viewing user and a presentation order for the stories. The social networking system does not “lock” the set of newsfeed stories or the presentation order. The user device locally stores the pre-fetched ranked set of newsfeed stories upon receipt. When the viewing user later requests presentation of newsfeed stories, the user device retrieves the set of newsfeed stories and presents, to the viewing user, stories from the set according to the presentation order. A request is also sent to the social networking system to “lock” the presented newsfeed stories and the order in which the newsfeed stories were presented.