There's a hot function, isScheduledLocationChangePending, which we can inline just enough to make a difference. I discovered this a while back while profiling page load tests.
Created attachment 17196 [details] patch
r27729