With the current values the snapshot on gmail requires about 27sec. This operation could be 30 times faster if we increase the chunk size from 100 items to 10000. Also very long strings will significantly affect the transfer size.
Created attachment 187251 [details] Patch
(In reply to comment #0) > With the current values the snapshot on gmail requires about 27sec. > This operation could be 30 times faster if we increase the chunk size from 100 items to 10000. What would be an average message size in bytes in this case?
sizeof(int) * 10000 * nodeFieldCount = 200kb sizeof(int) * 10000 * edgeFieldCount = 120kb sizeof(int) * 10000 * idMapEntryFieldCount = 80kb sizeof(String) * 1000 = 80kb So the expected working set for the serializer is ~480kb
Committed r142241: <http://trac.webkit.org/changeset/142241>