jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Carousel: shutter speed format algorithm is inefficient.

Open zinigor opened this issue 11 years ago • 1 comments

The algorithm used to format a photo's shutter speed to display it as a fraction rather than a real number is inefficient. For a fraction of 1/4000 it takes more than 4000 iterations: https://github.com/Automattic/jetpack/blob/master/modules/carousel/jetpack-carousel.js#L999

While it runs fast enough not to cause page freezes, there is still room for improvement.

zinigor avatar Jul 02 '15 15:07 zinigor

Related: #692 and #1087

jeherve avatar Jul 02 '15 16:07 jeherve