17 karma · joined January 10, 2011
Compilers actually generate (x+(x>>31))>>1 for signed division by 2. Which on x86 is three more instructions and requires an additional register.
Using x>>1 makes sense if you want floored division instead of truncating towards zero. Floored division is better if you want to reduce precision of the input or something like that and don't want to bias towards zero.
For example, using the code from http://iq12.com/blog/as3-benchmark/ which I've put up here: http://people.mozilla.com/~jmuizelaar/v8-flash.html, I get a score of 2134 with Flash vs 11796 in Chrome. At least on this benchmark, it looks like V8 is a worthy competitor.
As for support in other browsers, WebM is supported by Opera, Chrome and Firefox, plus it solves problem of being a royalty-free modern video codec and neither Safari nor IE have obliged in short order. What do you think that WebP brings that will make adoption happen faster than WebM?
As for my point about Facebook, I believe that they do care about the size of the images. However, the fact that they can be trivially and losslessly reduced in size suggests they just don't care enough to invest in optimizing them. Presumably, they have more important things to be working on. This suggests that they might also have more important things to work on than switching to webp.