nex3/sass — pull request #327 by cheba (2012-03-20 23:20:28+00:00)
Title: A bit faster (for most cases) check for unknwon named argments in function call

### Benchmark

**Before**

user system total real
All keywords 21.000000 0.070000 21.070000 ( 21.905063)
No keywords 5.050000 0.020000 5.070000 ( 5.534620)
First keyword 4.950000 0.030000 4.980000 ( 5.182199)
Last keyword 4.620000 0.020000 4.640000 ( 4.815920)

**After**

user system total real
All keywords 6.870000 0.040000 6.910000 ( 7.220139)
No keywords 5.000000 0.020000 5.020000 ( 5.467534)
First keyword 6.210000 0.030000 6.240000 ( 7.025294)
Last keyword 4.680000 0.020000 4.700000 ( 4.738899)

Benchmark setup: function with 100 arguments. Run 10,000 times.

It's about 3x faster for case with all keyword arguments. For no keyword arguments and only one last it's about the same. For first argument case it's a bit slower but it's virtually impossible case. In current implementation, it seems, one can only pass last args as named. I believe that to be a bug but that should be discussed elsewhere.