These are chat archives for ChaiScript/ChaiScript

25th
Mar 2015
Jason Turner
@lefticus
Mar 25 2015 15:16
I've managed to come up with some fixes that get code like yours 2x faster. Unfortunately it makes the rest of my performance tests 1.5x SLOWER. The problem is balancing how rigorously I try to determine the best function to dispatch on before trying to dispatch. A failed dispatch is expensive, with the exceptions, as you know. But filtering is also not-cheap
Andreas Reischuck
@arBmind
Mar 25 2015 20:41
I would suggest to reduce the costs by eliminating the exceptions
Great you are on it, but making it generally slower is not good :/
Jason Turner
@lefticus
Mar 25 2015 20:55
it's looking good right now, but I'm verifying it
I'm about 15% better across the board
and about 4.5x faster for a test that tries to replicate your problem
I'm expecting after I get this code to you that you will be ~2x slower than your javascript
much better than the 10x slower
Andreas Reischuck
@arBmind
Mar 25 2015 21:03
sound great