[JS-internals] Non-static, length 1, ASCII strings?

2014-01-21 Thread Nicholas Nethercote
Hi, I got some puzzling about:memory measurements for a zone belonging to a pdf.js window. Full details are below, but here's an illustrative example: │ │ │ │ │ └───6.74 MB (01.79%) -- string(length=1, copies=176787, ".") │ │ │ │ │ ├──5.40 MB (01.43%) ── gc-heap │ │ │ │ │

Re: [JS-internals] Basic loop optimization q from twitter

2014-01-21 Thread David Bruant
Le 21/01/2014 00:05, Nicholas Nethercote a écrit : On Mon, Jan 20, 2014 at 1:03 PM, hv1989 wrote: Just that measuring an empty loop is kinda pointless. For anyone with a twitter account: "Microbenchmarks suck!" easily fits into 140 chars. It's being worked on https://twitter.com/ubench_sphinx