Re: [sensors] Batching API for sensor readings

In another [blink-dev thread](https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/35QSwrRazKY) that I started to figure out the implementation approach exactly for sensors batch API I was guided to [PointerEvent.getcoalescedevents](https://w3c.github.io/pointerevents/extension.html#dom-pointerevent-getcoalescedevents) API returning sequence of objects. We could do smth similar with `sequence<SensorReading>` for batching..

I understand the performance concerns, but on the other hand, considering that the user cannot predict the required size of the buffer BYOB concept might be too complex here. Maybe we could start with a user-friendly API and optimize it if needed? It's usually harder to make an "optimized" API more user-friendly than doing the opposite :-)

-- 
GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at https://github.com/w3c/sensors/issues/171#issuecomment-288113690 using your GitHub account

Received on Tuesday, 21 March 2017 15:22:55 UTC