Page 5 of 5

Re: Speed up “movie barcode” generation w/ IM

Posted: 2014-07-12T16:15:57-07:00
by killmoms
fmw42 wrote:Was it faster than starting with PPM or PNG or whatever your original format was for the same code? It should be. That was the point of MPC.
No, because it required reading more data from disk. Maybe my installation of ImageMagick is busted, or maybe OS X's I/O code doesn't allow whatever IM needs for MPC to be fast off the disk, or maybe "convert -crop" is the wrong tool to use because it requires paging the entire file from disk to memory, but reading 16.6MB takes longer than reading 6.2MB (takes longer than reading 1MB). The limitation for this process right now is file I/O, because no matter what I do it seems I have to read entire image files off the disk just to pull a single row of pixels. So anytime the files get bigger, things take longer.

Re: Speed up “movie barcode” generation w/ IM

Posted: 2014-07-12T16:17:51-07:00
by fmw42
No, because it required reading more data from disk
Sorry, are you saying that MPC was not faster or that you did not test against other formats?

Re: Speed up “movie barcode” generation w/ IM

Posted: 2014-07-12T16:19:35-07:00
by killmoms
I'm saying that "16.6MB MPC source images cropped with convert -crop" was slower than "6.2MB PPM source images cropped with stream -extract".

Re: Speed up “movie barcode” generation w/ IM

Posted: 2014-07-12T16:26:53-07:00
by fmw42
OK. So you did not do a one-to-one comparison. No problem. I was just curious about whether it was faster than non-stream PPM.

Perhaps Magick can give you more help on your post to the Developers forum. I do not know what more to try.

Re: Speed up “movie barcode” generation w/ IM

Posted: 2014-07-12T17:50:41-07:00
by killmoms
That's okay, I know this is pretty deep in the weeds in terms of a very specialized (and unfriendly to more common approaches) task. Thanks for helping!