[webkit-dev] SharedWorkers alternate design

Maciej Stachowiak mjs at apple.com
Tue May 26 21:42:02 PDT 2009


On May 26, 2009, at 7:00 PM, John Abd-El-Malek wrote:

>
> This will work fine for appcache and localstorage, but isn't  
> sufficient for workers since the same caller gets different objects  
> depending on which process this is running in.  This doesn't happen  
> for appcache and localstorage.
>

It's fine to use virtual methods when you actually need runtime  
polymorphism at the same call site. The point is not to tie yourself  
in a knot if there really is true polymorphism, just to avoid paying  
runtime penalties for anything that can actually be a compile-time  
decision. If it can't be, then so be it.

Regards,
Maciej



More information about the webkit-dev mailing list