On Wednesday 2013-05-15 14:32 -0700, Gregory Szorc wrote:
> I think the more compelling use case is service startup. Proper
> dependencies should allow us to more intelligently start services on
> demand. This should lead to lower resource utilization and faster
> startup times. Shutdown times should also speed up if there are
> fewer services to shut down.

This is what we do already; we don't create an XPCOM service until
somebody asks for it.  Now, I'm not saying that all of our code is
perfect about not *asking* for the service until it's needed.  But
in many cases that's more trouble than it's worth; there are many
things we know we'll need during startup, and it's not worth the
extra overhead of checking every time if we've already called
getService.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to