Re: Script to create huge sample files
- From: shlomif@xxxxxxxxxxx (Shlomi Fish)
- Date: Sun, 3 Jan 2010 10:37:33 +0200
On Sunday 03 Jan 2010 07:12:32 Parag Kalra wrote:
Thanks Shlomi for your expert comments and I must admit you have got a very
strong vision. :)
You're welcome.
Anyways coming to my first question:
a.) What do I need to do to make sure that length of new file will
increase
every time the step 4 is executed.
Although it may have nothing to do with this algorithm but I still thought
of discussing it.
Say I have scripts that dumps some contents on to an output file handler
inside a long loop. With such scripts I have noticed 2 types of behaviour.
1. The size of this output file is zero while the script is getting
executed inside the loop and it increases only when the script execution
gets over.
2. And sometimes I have noticed that the size of output file increases
every time some data is dumped on to it. Thus increase in size happens in
real/run time.
I want to control this behaviour. What I can guess is that it has something
to do with output buffer.
Please read "Suffering from Buffering":
http://perl.plover.com/FAQs/Buffering.html
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise
Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )
.
- Follow-Ups:
- Re: Script to create huge sample files
- From: Parag Kalra
- Re: Script to create huge sample files
- References:
- Script to create huge sample files
- From: Parag Kalra
- Re: Script to create huge sample files
- From: Shlomi Fish
- Re: Script to create huge sample files
- From: Parag Kalra
- Script to create huge sample files
- Prev by Date: Re: Script to create huge sample files
- Next by Date: perl multithreading
- Previous by thread: Re: Script to create huge sample files
- Next by thread: Re: Script to create huge sample files
- Index(es):
Relevant Pages
|