Re: 15 Million RAW

2005-11-25 Thread John W. Krahn
Lorenzo Caggioni wrote: > Attached you can find the code an a input file to try it. > > I'm sorry if the code is not realy commented and if it is no real clear, but > i have to delete some line because it is base on a database > > Now the program can run without any DB. > You can find even a

Re: 15 Million RAW

2005-11-25 Thread Tom Allison
Chris Devers wrote: On Thu, 24 Nov 2005, Pierre Smolarek wrote: Lorenzo Caggioni wrote: The program I written takes 25 sec for 10.000 line... too much How quickly do you need to it if 25 seconds is too long? If 10,000 lines take 25 seconds, you're doing 400 lines per second. At t

Re: 15 Million RAW

2005-11-25 Thread Dr.Ruud
Lorenzo Caggioni: Please don't toppost, and cut all the text that you don't react on. > is there another way to recal a function retrining his name from a > variable? If the set of functions is limited, use if: if ('abc' eq $func) { abc } elseif ('def' eq $func) {

Re: 15 Million RAW

2005-11-25 Thread Jeff 'japhy' Pinyan
On Nov 25, Lorenzo Caggioni said: I made some changes in the program (delete eval, edjust subs... ) Now the program takes less then 3 sec but it loses all the structure... The main thing that increase performance is delete the eval("fun name"). I do it in this way because the name of the funct

Re: 15 Million RAW

2005-11-25 Thread Lorenzo Caggioni
I made some changes in the program (delete eval, edjust subs... ) Now the program takes less then 3 sec but it loses all the structure... The main thing that increase performance is delete the eval("fun name"). I do it in this way because the name of the function is retrived from a database. is t

Re: 15 Million RAW

2005-11-25 Thread John Doe
Rob Coops am Freitag, 25. November 2005 14.13: > Making the subs shorter will maybe help a little in the speed of processing > but it will make it a lot more difficult for the person that gets to take > over the maintanace. When you know what you are doing and why it is easy to > read it, but when

Re: 15 Million RAW

2005-11-25 Thread Rob Coops
Making the subs shorter will maybe help a little in the speed of processing but it will make it a lot more difficult for the person that gets to take over the maintanace. When you know what you are doing and why it is easy to read it, but when you get a big program written like that and are asked t

Re: 15 Million RAW

2005-11-25 Thread John Doe
Lorenzo Caggioni am Freitag, 25. November 2005 11.04: > Attached you can find the code an a input file to try it. > > I'm sorry if the code is not realy commented and if it is no real clear, > but i have to delete some line because it is base on a database From a short view into the code, I se

Re: 15 Million RAW

2005-11-25 Thread Lorenzo Caggioni
Attached you can find the code an a input file to try it.   I'm sorry if the code is not realy commented and if it is no real clear, but i have to delete some line because it is base on a database   Now the program can run without any DB.You can find even a profile for the program.   Thanks   L

Re: 15 Million RAW

2005-11-25 Thread Chris Devers
On Fri, 25 Nov 2005, Gary Stainburn wrote: > Here's my 2peneth. > > Avoid regex. While it's powerfull, it's also expensive. > > Short but sweet And useful! Because we know that regular expressions are the problem here, right? Err, wait, we haven't seen any code, or any benchmarks, so we don'

Re: 15 Million RAW

2005-11-25 Thread Gary Stainburn
Here's my 2peneth. Avoid regex. While it's powerfull, it's also expensive. Short but sweet Gary On Friday 25 November 2005 3:31 am, Chris Devers wrote: > On Thu, 24 Nov 2005, Pierre Smolarek wrote: > > Lorenzo Caggioni wrote: > > > The program I written takes 25 sec for 10.000 line... too > >

Re: 15 Million RAW

2005-11-24 Thread Chris Devers
On Thu, 24 Nov 2005, Pierre Smolarek wrote: > Lorenzo Caggioni wrote: > > The program I written takes 25 sec for 10.000 line... too much > > How quickly do you need to it if 25 seconds is too long? If 10,000 lines take 25 seconds, you're doing 400 lines per second. At that rate, 15,000,00

Re: 15 Million RAW

2005-11-24 Thread John W. Krahn
Lorenzo Caggioni wrote: > Hi, Hello, > What I have to do is: > > 1- Read Line from an input file > 2- Validate the raw (for example: is second char == 2?) > 3- Split the line > 4- Write the validated and splitted raw in an output file whit a different >order (for example: last 2 digits I hav

Re: 15 Million RAW

2005-11-24 Thread Pierre Smolarek
Lorenzo Caggioni wrote: The program I written takes 25 sec for 10.000 line... too much How quickly do you need to it if 25 seconds is too long? -- Best Regards, Pierre Smolarek Unify Media Ltd tel. 1-403-681-8054 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

15 Million RAW

2005-11-24 Thread Lorenzo Caggioni
Hi, What I have to do is: 1- Read Line from an input file 2- Validate the raw (for example: is second char == 2?) 3- Split the line 4- Write the validated and splitted raw in an output file whit a different order (for example: last 2 digits I have to write as first 2 digits) I have