Before start, we investigated and learned tons of theory and alot of libs.
Rawspeed is my personal best and we compared our results with it.
Now in raw.pics.io we implement simple bicubic interpolation algorithm which optimal in speed/quality. Sure, we think about AHD, gradient and other algos, but we should deal with performance first.