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

> (Edit: unclear if GC is < 1ms as mentioned on the chromium thread or < 1μs as @alexshalamov claims here. I assumed the former even though I incorrectly wrote the latter.)

I never said that GC is less than microsecond either, I said that reading update, e.g., re-creating reading object (3 doubles, 12 bytes) will add extra 0.1-1 microsecond overhead.

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

Received on Monday, 20 March 2017 22:00:06 UTC