这是indexloc提供的服务,不要输入任何密码
Skip to content

Shared Storage Return Times Outside of Worklet Appear to Be Dependent on Activity in Worklet #136

@anisenoff

Description

@anisenoff

It appears that you can influence the return times of calls to the shared storage API outside of the worklet by making calls to the API from inside the worklet. Below are histograms of the return times (relative to page navigation) from repeatedly calling window.sharedStorage.set from outside of the worklet in three scenarios.

If you don’t have anything happening in the worklet the return times create the histogram below.

without_2

If you also constantly call window.sharedStorage.set from inside of the worklet you get the following histogram of return times.

full_2

If you repeatedly call window.sharedStorage.set for periods of two seconds and then do nothing for two seconds from inside of the worklet you get the following histogram.

with_2

By looking at the return times of the function calls outside of the worklet you can learn about what is happening inside the worklet which can be based on information that has been stored in shared storage.

For reference, these graphs were generated in Chrome version 121.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions