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: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Fri, 09 Dec 2016 13:13:41 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-266010840-1481289219-sysbot+gh@w3.org>
@Maksims do you have any test set (data) which shows that current 
approach makes 60fps target unreachable? I quckly measured codepath 
for sensor reading update using current API and with modified codepath
 that matches proposal in this issue. The difference between two is 
neglectable: fluctuations on a level of 0.1-1 microseconds per reading
 update. Tested on Mi Pad2 device.

@tobie

> Requirement 1) is extremely perf sensitive, and if our ability to 
deliver on it is hindered because we're triggering too much GC, we 
should definitely fix that.

Before changing the API, we need some data which proves that 
performance issues do exist, otherwise, it looks like a premature 
optimisation.

-- 
GitHub Notification of comment by alexshalamov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/153#issuecomment-266010840 using
 your GitHub account
Received on Friday, 9 December 2016 13:13:48 UTC

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