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

> 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 
concepts.
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