Open Bug 1685678 Opened 5 years ago Updated 8 months ago

Add a --selfhosted-xdr-mode for encoding/decoding as needed.

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nbp, Unassigned)

References

(Blocks 1 open bug)

Details

Decoder mentioned that it would be nice if the benefits of making faster JS Shell execution was not hidden behind a flag, and suggested to use a lock on the cache file such that:

  • If the cache file does not exist:
    • Create the cache file and lock it before encoding and writing data in it.
  • If the cache file exist and is locked:
    • Parse without encoding nor decoding.
  • If the cache file exists and is not locked:
    • Decode the content.

The cache file would have to be versioned properly such that 2 instances of JS shell with different code base would not fight for the same cache, nor keep invalidating each others. Or this code would only be used iff --selfhosted-xdr-path is specified.

You need to log in before you can comment on or make changes to this bug.