Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImage fetch responses are serialized multiple times unnecessarily #24338
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When an image element requests an image, it starts a fetch and then feeds the fetch response to the image cache chunk by chunk. This means that the network thread serializes the response data in order to send it to the listener, and the listener serializes the data again in order to send it to the image cache. It would be much more efficient if the image cache were the direct listener for the fetch operation instead.