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: Mon, 19 Dec 2016 11:12:13 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-267939751-1482145932-sysbot+gh@w3.org>
> I don't think a function call is a huge perf drag nowadays. It was 
in the days of IE6, but those are behind us at this point.

I'm more relating to ease of use and friendliness of an API, where 
learners don't need to research much of how to use it, learning new 
Basically, simply getting data from properties is easier than 
allocating extra object and getting readings to that object every time
 data is required. This makes usability somewhat less simple.

GitHub Notification of comment by Maksims
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/153#issuecomment-267939751 using
 your GitHub account
Received on Monday, 19 December 2016 11:12:20 UTC

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