W3C home > Mailing lists > Public > public-device-apis-log@w3.org > December 2016

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

From: moka via GitHub <sysbot+gh@w3.org>
Date: Tue, 06 Dec 2016 17:21:28 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-265212567-1481044887-sysbot+gh@w3.org>
> Just to clarify, gyro.x is a getter for the last, asynchronously 
polled x value of the gyroscope, which is stored in a shared memory 
buffer. It is not a sync poller.

Indeed, this is just accessor to latest available data.
If it would pull actual data, it then shall be a method to clearly 
indicate that there is logic going on behind the scenes, as it would 
block JS thread probably.

GitHub Notification of comment by Maksims
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/153#issuecomment-265212567 using
 your GitHub account
Received on Tuesday, 6 December 2016 17:34:36 UTC

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