W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2017

Re: [sensors] Don't allocate response objects to avoid triggering GC

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Mon, 20 Mar 2017 21:59:59 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-287911570-1490047198-sysbot+gh@w3.org>
> (Edit: unclear if GC is < 1ms as mentioned on the chromium thread or < 1μs as @alexshalamov claims here. I assumed the former even though I incorrectly wrote the latter.)

I never said that GC is less than microsecond either, I said that reading update, e.g., re-creating reading object (3 doubles, 12 bytes) will add extra 0.1-1 microsecond overhead.

GitHub Notification of comment by alexshalamov
Please view or discuss this issue at https://github.com/w3c/sensors/issues/153#issuecomment-287911570 using your GitHub account
Received on Monday, 20 March 2017 22:00:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC