News for hackers. Stuff that matters.
Re:How to Make Common Lisp go Faster Than C by xirium on Wednesday May 21, 2008 @03:11PM (#196428)
When I mentioned that it may be possible for a web startup in beta to improve the speed of their code by a factor of 1024 over no particular timescale, I was downmodded by five points ( http://news.ycombinator.com/item?id=187692 ).

I can only advise that you shouldn't quit while you're ahead. Now that you've eliminated the most obvious performance bottlenecks, you may find that less obvious bottlenecks have emerged. Removing these could give you an additional factor of 10 improvement.

Re:How to Make Common Lisp go Faster Than C by gibsonf1 on Wednesday May 21, 2008 @03:18PM (#196443)
We're using the SBCL profiler on a regular basis to speed up the system whenever we find an area that feels a bit sluggish. We've made very large speed gains with only minor coding modifications.
Re:How to Make Common Lisp go Faster Than C by xirium on Wednesday May 21, 2008 @03:36PM (#196466)
I'm very impressed with your quantative approach. I'm also very curious about the type of modifications you're making. What proportion of changes are local changes which affect common cases, what proportion of changes are local changes which affect corner cases and what proportion of changes are architectural? Is it 70:20:10?
Re:How to Make Common Lisp go Faster Than C by gibsonf1 on Wednesday May 21, 2008 @03:53PM (#196478)
Thats a good question. Our workflow is to look at the profiler results, and work on the functions that are taking the most time. Sometimes we'll find a function being called far too many times for the page being viewed, so we'll look into the program logic to solve that. Our code is highly integrated, so most pages are using functions or methods common to many others, so a fix (or a bug) effects a large part of the system. The example 100x triples improvement sped up the entire system as triples are used at the core of our security and relations. This is a long winded way of saying I'm not sure what the proportions would be, a guess would be 60:10:30
Re:How to Make Common Lisp go Faster Than C by scott_s on Wednesday May 21, 2008 @03:15PM (#196438)
Probably not. Remember Amdah's Law: http://en.wikipedia.org/wiki/Ahmdal%27s_Law
Re:How to Make Common Lisp go Faster Than C by xirium on Wednesday May 21, 2008 @03:29PM (#196460)
I'm aware of Amdahl's law. I also know of a case where adding an index to a production database gave a factor of 1000 improvement. If your design started as a proof-of-concept, you made a rash assumption, you had a tight deadline or you're just plain incompetent then there's almost no lower bound to initial system efficiency.
Re:How to Make Common Lisp go Faster Than C by scott_s on Wednesday May 21, 2008 @04:00PM (#196491)
My comment was aimed at your down-modded comment. You can make 10% performance improvements in dozens of modules throughout your system, but if they only account for, say, 5% of the total execution time, it won't make much difference.