W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

Re: Why is querySelector much slower?

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 28 Apr 2015 10:59:35 -0400
Message-ID: <553FA057.3040207@mit.edu>
To: Glen Huang <curvedmark@gmail.com>, Elliott Sprehn <esprehn@chromium.org>
CC: public-webapps <public-webapps@w3.org>
On 4/28/15 2:44 AM, Glen Huang wrote:
> But If I do getElementsByClass()[0], and LiveNodeList is immediately
> garbage collectable

Then it will only be collected the next time GC happens.  Which might 
not be for a while.

-Boris
Received on Tuesday, 28 April 2015 15:00:12 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC