From: Ilmari Heikkinen Date: 2006-01-07T19:29:18+09:00 Subject: Re: RMagick exporting pixels as string On 1/7/06, Ilmari Heikkinen wrote:> Hi,>> I'm exporting pixels to an OpenGL texture from Magick::Image> using export_pixels.>> The problem is that it's slow.> 5.5 seconds for a 330x370 image -slow.>> Is there a faster way to do this:>> image.export_pixels(0,0, cols, rows, "BGRA").pack("c*") Did some more timing and pinpointed the problem:export-bgra: 0.557612pack: 4.761164 export_pixels isn't quite the speed demon, but pack'sthe real problem.