imagemagick - Optimization of in memory load time of image -
i using imagemagick
utility resize images. before download image s3 , keep in memory reduce time. still when print time taken image s3
, time load image in memory
comes out 300-400 ms
, 500-900ms
. question time image s3 depands on region download image. time load image in memory
taking 500-900ms
. there way can optimize ?
string accesskey = "access_key"; string secretkey = "secret_key"; amazons3 client = amazon.awsclientfactory.createamazons3client( accesskey, secretkey ); getobjectrequest request = new getobjectrequest { bucketname = "buckey_name", key = keyname }; stopwatch sw = new stopwatch(); sw.start(); var response = client.getobject(request); sw.stop(); console.writeline("time image : " + sw.elapsed.ticks / timespan.tickspermillisecond); sw.reset(); sw.start(); magickimage imgstream = new magickimage(response.responsestream); sw.stop(); console.writeline("time load image in memory : " + sw.elapsed.ticks / timespan.tickspermillisecond);
Comments
Post a Comment