akka/akka — pull request #379 by sirthias (2012-03-23 16:05:57+00:00)
Title: Make provider registration of PromiseActorRefs lazy + smaller fixes

This pull request resulted from [this thread](http://groups.google.com/group/akka-user/browse_thread/thread/ffde93efdaa066cd) on the mailing list.

The central change is lazy registration of PromiseActorRefs with their ActorRefProvider reducing the overhead of a local `ask` by about 30%.

The two other commits fix a race condition in PromiseActorRef and add a tiny optimization to FiniteDuration.