On Thu, 5 Jul 2007, Kore Nordmann wrote: > I implemented the pdiff [1] algorithm in PHP, just converted the cpp > code to PHP, and it is far to slow, to even think of possible > optimizations (and I don't see any real optimizations). It takes about > 1m and 30s to compare a single small image on my machine. This would be > a major slow down of our test cases, as I currently compare about 75 > bitmaps in my tests (would result in a 2h run, without code coverage ;). > > So what are the options? > > 1) pdiff now compiles without patching and can compare PNGs with one > patch [2] in no time. Is it an option to wait for the patch beeing > included and make it an requirement for testing the bitmap stuff? > > 2) We could convert the cpp code to c and make a pecl extension out of > it. This would be far easier to install, on not a really big issue.
I think this is the best idea... as it makes it much easier for people to install than 1 - where you'd have to mess with compiling all yourself as the pdiff program is not in any distribution I guess. Derick -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components