Graphics Optimization: fast than GD

来源:互联网 发布:氰化物淘宝有卖么 编辑:程序博客网 时间:2024/05/17 01:00

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 is56kb.

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.

0 0
原创粉丝点击