Forum Moderators: phranque
Typical PHP scripts that accomplish normal goals only use a tiny fraction of a MB. If you're running a big db query that grabs lots of data before rendering it you'll see more memory being used. Likewise if you have lots of hits on a script that collects lots of data or on scripts that are inefficiently written you will see more-than-average memory useage.
If you are just running it a few times to accomplish a task, privately, then increasing memory_limit will make it run a little faster, yes.
See the PHP manual [us3.php.net] for a description of memory_limit's purpose.
What you are doing with the TIFs, however, probably has less to do with swapping memory than with processor load. Displaying graphics is a memory hog, but manipulating them in the way you describe is very math-intensive, and is usually under the purview of the processor.