[Ilugc] .a-tip-a-day (patch - apply diffs and act as inverse of diff)

  • From: rmathews@xxxxxxxxx (Roshan Mathews)
  • Date: Wed Sep 30 21:40:39 2009

On Wed, Sep 30, 2009 at 9:25 PM, Manvendra Bhangui <mbhangui@xxxxxxxxx> wrote:

Yes.

That's quite interesting.  Where was this, if you don't mind sharing
that.  I haven't written much C at work, and I guess I've never seen
much industrial C either then.  Never would have expected to be
hovering right near assembly.

However in most of such cases in my experience, the inefficiencies have been
due to bad coding rather than the choice of language.

Also in one case, I have not been able to beat a program written by someone
else in perl. The program happens to be a greylisting server which involves
searching a IP in a table having millions of entries. The better speed (5x)
in the perl program happens because of a better search algorithm than the
one which I am using in my C program. A good algorithm in any language can
make a huge difference and outweigh everything else.

Yes, that's a given.  Have you seen http://norvig.com/java-lisp.html
and the links going out of that article?

Roshan Mathews

Other related posts: