golang/go

image/jpeg: Decode is slow

Open

#24,499 opened on Mar 23, 2018

View on GitHub
 (15 comments) (2 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationPerformancehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Mac OS Sierra go version go1.10 darwin/amd64 CPU 3,5 GHz Intel Core i7

I noticed that the use of decode jpeg is very slow.

decode image jpeg 1920x1080

I test github.com/pixiv/go-libjpeg/jpeg and native jpeg

go 1.10 jpeg.decode ≈ 30 ms cpu ≈ 15 % libjpeg jpeg.decode ≈ 7 ms cpu ≈ 4 %

will it ever go as fast as other libraries? is it possible that in the next versions the native implementation will become faster?

Contributor guide