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
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
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) {
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
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
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
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
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
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
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'
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
> >
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
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
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
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
15 matches
Mail list logo