Re: ReadImage TGA very slow
Bob Friesenhahn <[email protected]> Mon, 1 Oct 2018 15:03:18 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 1 Oct 2018, [email protected] wrote: > > I don't understand why TGA loading is more than ten times slower than the other > formats, while being as simple or simpler. Any idea? It looks like the TGA pixel reading loops need to be unrolled so that there is a special case for each permutation and the loops are tight, with very little conditional logic. The code is implemented in the classic ImageMagick style which layers conditional code in loops and it looks like I never re-wrote it. Since you seem to be a capable developer are you willing to try your hand at that? Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/