HaLo2FrEeEk Posted July 19, 2007 Share Posted July 19, 2007 I was wondering if anyone knew the differences between using imagecreatefromstring to create an image resource then using imagepng to output it, or simply echoing the image string. I've used both, and both seem to be fairly latent, but I can't tell if imagecreatefromstring is faster or not, and I don't know whether or not just echoing it will create problems. I would think that using the imagecreatefromstring would be slower becuase you're having to instantiate another resource and pass it along wheras if you are just echoing it, you will bypass that. Any answers will be appreciated. thx. Quote Link to comment Share on other sites More sharing options...
HaLo2FrEeEk Posted July 20, 2007 Author Share Posted July 20, 2007 bump. Quote Link to comment Share on other sites More sharing options...
phpknight Posted July 20, 2007 Share Posted July 20, 2007 Just time it. If necessary, run it 1000 times through a loop and print the average. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.