Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Ghost,Your grep works
. I had an old 2005 version.
Your skill level has improved. Who is your Tutor?
I reiterate my point. Size of a file does not matter if what you are comparing is the result of the output between to 2 pieces of code.
you want to make sure the output produced by the 2 pieces of code are the same.
Size of file does matter in a benchmark, when you are concerned about the way the program is written and the algorithm used. That's is whether you have use the most optimized method when dealing with big files.
Because of the size of the file, you have chosen to read the files in chunks. That's a direct consequence of taking size into consideration when designing your program. That's why size does matter in a benchmark. 1 million is way different 1 billion!
You showed a benchmark between BCP and your code, then says BCP's one is sluggish after a while without stating your reasons and conclusion of your findings.
ST said he download "1 million places of pi", then his file name for testing the benchmark is "1 billion places of pi".
(1,000,000,002 bytes) with no carriage returns.
That is absolutely true, I did, but I did then give the file size immediately after.
so now why don't you go edit your post and correct the typo? change million to billion.
I downloaded a text file containing 1 million places of pi (1,000,000,002 bytes)
A:) because he can't
and B:) it doesn't really matter.
so shall we go through GD74's posts looking for typos?
The spirit of Billrich has deeply impregnated this thread
go ahead if you are too bored. I don't care. If there are anything i am trying to proof and there are typos , i would be glad to amend it. don't associate me with that guy. If you want to do that, look at yourself in the mirror and tell me why you are any different
An undefined problem has an infinite number of solutions.—Robert A. Humphrey