What language is the faster for large file processing?

What programming language is the fastest, least processor intensive language for processing large files.  An example would be Web Logs.


Who is Participating?
ozoConnect With a Mentor Commented:
It would depend a lot on what you write in that language, but the assembly language for the processor you are running would allow you to write the fastest, least processor intensive code.
fridomConnect With a Mentor Commented:
Languages optimized for such kind of task. ozo is of course right, however the following languages should be near-by
- C
- Ocaml
- Perl (optimized for string manipulatons)

anteuszConnect With a Mentor Commented:
Of course, if you take the time to write the program into account, assembly language may not
 be the best if you cannot learn it fast enough...
What languages do you know already?
Maybe selecting a language that is close to the one you already know, can give you higher productivity.
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

marco_delpercioConnect With a Mentor Commented:

I suggest Perl. It's easy to learn instead of C/C++ and it's maybe the best text processing language, well on the other hand you'll have to manage regular expressions wich are not so easy but even with simple regular expressions you'll save much much development time for file parsing. Moreover Perl is cross-platform and you will easily find a perl interpreter on most web servers.

Marco Del Percio

rjohnsonjrAuthor Commented:
I know some c++, some java, some perl, php, coldfusion, cobol, not enough of assembly language to write any program in it.  I was thinking c or Perl.  I have never heard of Ocaml
Ocaml is a multi paradigmn language (with static types)
It a functionalk and object oriented language in one go (others in that class are:
Common Lisp, Mozart/Oz)

Ocamls homepage is at:

You can see how well it scales regarding speed at:

It's one of those totalyl underestimated fine languages, which people simple do not even try. It's a pitty really.

TimYatesConnect With a Mentor Commented:
I process massive files in Java...

The speed is more than likely going to depend on how you do it, rather than what language you use...

Actually, C/C++ is one of the fastest languages after assembly, I think.
So you can use it if you are comfortable with it.
On the other hand, it is more harder to maintain C/C++ programs as they have to be compiled.
Perl is almost available everywhere and it can be maintained faster.
What is more important to you, speed or maintainanability?

The question for me is what an acceptable running time for you and how complicated the processing is.
rjohnsonjrAuthor Commented:
The main thing would be a program that is not processor intensive, followed by speed.  Maintainability is not really an issue as I would not have to change it much.

>> Maintainability is not really an issue as I would not have to change it much.

Those are famous last words ;-)

rjohnsonjrAuthor Commented:
lol yep,  that's for sure,  
cupConnect With a Mentor Commented:
I don't know what Cobol compilers are like nowadays.  In the early 80s they were the compilers which generated the best code.  They were geared towards processing large batches of data and most of them are quite well optimized for that.  However, I haven't used Cobol in anger since the early 80s and certainly not on the same machine as C/C++ so I can't compare the two.
I think these days, all main languages are pretty much as fast as each other.  Especially for something as "run of the mill" as file processing...

i_maheshConnect With a Mentor Commented:
Perl is quite optimized for this purpose.
Leo EikelmanConnect With a Mentor Director, IT and Business DevelopmentCommented:
If you are talking about LARGE files then you should use a tree structure to parse threw the file.

You can do this using ANSI C.

look at this link for code examples:



Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.