User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Steps to reproduce:
- Send a big message from a worker to the main thread using
- Measure the time it takes to access the
It takes almost no time.
It should take some time (I’m seeing between 20 and 40ms on a MacBook Pro). Chrome and Safari seem to run StructuredDeserialize1 lazily, so only once .data is being accessed.
I think this is desirable as it puts the developer in control when to pay the performance hit of deserializing potentially big payloads. It also aligns Firefox with Chrome and Safari.