From: Rob Coops <rco...@gmail.com> > > A daily job that by the sound of it will not be changing a whole lot, jut > get executed pretty much till the end of times... C is your friend. Perl > would certainly get the job done and on time without to much problems, but > if you are worried there isn't much that will out perform C/C++ when it > comes to raw speed.
If you are able to implement it well enough. Keep in mind that a lot of time was spent on optimizing the builtins and the regexp engine, much more time than you can spend on your program. So if the problem at hand matches well enough Perl strengths, your Perl solution may even be quicker than your C solution. Plus it's not one or the other, you can combine the two. You can write the program in Perl and if and only if you find out it's too slow you can benchmark it and write just the problematic parts in C. > If you are not planning on making any changes to the code in > the foreseeable future, the extra readability of the Perl code should not > really mater as you do not expect to be making changes to it on a regular > basis anyway. Expect the unexpected. And regular changes are not the problem. The problem are irregular, once in a while changes that have to be finished right now or if possible last week. > My biggest worry would not be the 1T (of logs I guess) the code needs to > parse now, but in 4 or 5 years from now the likely doubled amount of data. what was the name of that law? Something that said that the speed of computers doubles every ??? years. If in four or five years the data amount is only doubled, you are more than safe. And if it's parsing logs, then unless you intend to do some natural language processing, then IO will be the problem, not the CPU/language speed. Jenda ===== je...@krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/