The app server must have the file contents in memory before writing it to disk, regardless of the coding method used. If you use a request variable to hold the file contents, the app server may not use any more memory than if you write the file contents in the file action window. Maybe it will, but maybe not.


The reason why it might not take any more memory to use a request variable is because the app server might not write from a copy of that variable, it might be able to just reference it. If the app server does work this way, then the file contents are only stored in memory once.

If the app server copies the file contents, that extra memory will only be used until the end of the request or the variable is purged. With really large files (like 100MB), you might want to test if the app server needs more memory or not. Smaller files (like 10MB), shouldn't hurt things on a machine with ample memory.

(If you do some tests, please post your results - I'd be interested in what you find.)

- Jeff



But then you are creating giant local variables with loads of text, which
can't be a good thing... though it does solve the limitation issue.


Jim Kass Web Developer

--
Forestweb: The Source for Industry Intelligence
Best Content -- Most Relevant -- Best Delivery
http://www.forestweb.com
(310) 553 - 0008

-----Original Message-----
From: Jeffrey Bohmer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: File Action Limitations Anyone?



Editing text in the file action window isn't nearly as nice as
editing in a Results HTML action, for a lot of reasons.  I assign the
file contents to a variable in a Results HTML action and then
reference the variable in the file contents window.

- Jeff



Using WinXP, and Studio v. 5.0, I've come across a limitation in the amount
of text that you can put into the file action window.  I don't know the
exact character limitation, but it will cut off anything pasted larger than
a certain amount of characters.  After that, you can't add to the text in
the file action, or EVEN do searches and replaces if it would makes things
larger.

Stranger still, if you do a search/replace once you've reached the
character
capacity, rather than replacing just the word, it will replace characters
around the word, not just the word so that the replace won't fail, and the
character count remains the same (but that is of course NOT what you want
it
to do, and you have to be careful to CHECK that your search/replace didn't
increase the amount of characters beyond the limit).

Anyone experienced this, is there another version out there of Studio that
is more stable - my studio still crashes frequently, and the file action
limitation requires me to make multiple write/append/append actions for
files with lots of content.

Any help is appreciated.

Thanks.


Jim Kass Web Developer

--
Forestweb: The Source for Industry Intelligence
Best Content -- Most Relevant -- Best Delivery
http://www.forestweb.com
 >(310) 553 - 0008
--
--

Jeffrey Bohmer
VisionLink, Inc.
_________________________________
303.402.0170
www.visionlink.org
_________________________________
People. Tools. Change. Community.
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to