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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -