In working on a project recently with many large files I have observed something that may be related to your experience. The host seems to do buffering that makes file io very quick. By quick I mean that the io appears finished to J so that J can continue but there is still processing to be done by the host to really get them on disk. But if there is enough io things eventually slow down so you see the real time to get the bytes to disk. Another way of thinking of this is that io for the first hundreds of magabytes is artificially fast, but after some point it starts to be a linear time per byte.

----- Original Message ----- From: "Henry Rich" <[EMAIL PROTECTED]>
To: "'Programming forum'" <[email protected]>
Sent: Sunday, April 27, 2008 3:55 PM
Subject: [Jprogramming] Does J flush files before returning to immediatemode?


I'm curious about a behavior I have seen.

I have a program that creates a few hundred files using 1!:2, and types
a message as it creates each one.  Files are about 4MB each.

It zips through them, and the messages fly by.  But then, after all the
messages have been typed, there is a delay of maybe 10 seconds before
J will accept another command.  The program is finished, but Roger is
in there doing something.

Any idea what?

Henry Rich




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to