Graphics Optimization: fast than GD

Here is a comparison between my graphics routine and libgd.

Target is a jpeg file with size of 4536x2404, Adobe RGB color space.

To resize this image to 1024x1024(no matter the ratio).

Time consumption of my algorithm is 15.82ms, concluded from 512 loops.

And the GD, unfortunately, is 28.01ms.

The worse thing is, GD produced a bigger size of 176kb, on the other hand, mine is 56kb.

According to this result, I made my decision to write my own graphics library.

And that's why people always need their own libraries not the generic ones.

你可能感兴趣的:(Graphics Optimization: fast than GD)