Hi Wez. Here are some clarifications... On 8/7/2004 Wez. wrote: >I suppose we could add that. Keep in mind that strings in PHP aren't >hugely expensive unless you are doing something wrong (tm) like using >10MB strings.
Strings are cheap in Java too. The issue is object creation and cleanup. When the strings are very large or very numerous, we could be talking about thousands of substrings per page hit. This increases the strain on both the clock speed and the memory of the host machine. Theory aside, I can get as much as a tenfold improvement in throughput with such techniques in Java. >$fp = fopen(...) ? >$fp = tmpfile() ? Right, I should have mentioned this possibility. The main reason for taking these precautions is throughput. I need in-memory streams. Can I create a memory-only file? Thanks for your help! ~joe -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php