Optimisation for kw args parsing: static parsing only for required arguments, moved optional arg parsing into a separate function
Optimisation for kw args parsing: static parsing only for required arguments, moved optional arg parsing into a separate function

The idea is that keyword arguments tend to be sparse, so it's faster to iterate over the keyword dictionary and copy keyword values into the named arguments, instead of requesting each optional argument from the keyword dict separately.

This speeds up the case where only required arguments are passed and the case where a minor number of optional keyword arguments are passed (and everything else is passed as positional arguments).

acrispin/cython,cython/cython,rguillebert/CythonCTypesBackend,scoder/cython,cython/cython,da-woods/cython,JelleZijlstra/cython,cython/cython,rguillebert/CythonCTypesBackend,dahebolangkuan/cython,acrispin/cython,c-blake/cython,hickford/cython,fperez/cython,roxyboy/cython,bzzzz/cython,encukou/cython,hhsprings/cython,ChristopherHogan/cython,madjar/cython,JelleZijlstra/cython,fabianrost84/cython,encukou/cython,andreasvc/cython,hickford/cython,mrGeen/cython,hpfem/cython,scoder/cython,achernet/cython,roxyboy/cython,c-blake/cython,hhsprings/cython,mrGeen/cython,mcanthony/cython,hpfem/cython,ABcDexter/cython,rguillebert/CythonCTypesBackend,roxyboy/cython,acrispin/cython,ChristopherHogan/cython,larsmans/cython,madjar/cython,da-woods/cython,hpfem/cython,bzzzz/cython,hpfem/cython,mrGeen/cython,slonik-az/cython,hhsprings/cython,rguillebert/CythonCTypesBackend,ABcDexter/cython,c-blake/cython,marscher/cython,slonik-az/cython,andreasvc/cython,mrGeen/cython,madjar/cython,fabianrost84/cython,madjar/cython,mcanthony/cython,dahebolangkuan/cython,andreasvc/cython,hhsprings/cython,acrispin/cython,JelleZijlstra/cython,marscher/cython,roxyboy/cython,JelleZijlstra/cython,mcanthony/cython,achernet/cython,ABcDexter/cython,scoder/cython,scoder/cython,slonik-az/cython,da-woods/cython,larsmans/cython,hickford/cython,JelleZijlstra/cython,bzzzz/cython,marscher/cython,c-blake/cython,encukou/cython,marscher/cython,fperez/cython,fabianrost84/cython,dahebolangkuan/cython,fperez/cython,bzzzz/cython,fabianrost84/cython,ABcDexter/cython,madjar/cython,larsmans/cython,achernet/cython,cython/cython,hhsprings/cython,dahebolangkuan/cython,roxyboy/cython,andreasvc/cython,fabianrost84/cython,da-woods/cython,mrGeen/cython,larsmans/cython,larsmans/cython,acrispin/cython,dahebolangkuan/cython,achernet/cython,fperez/cython,ABcDexter/cython,andreasvc/cython,achernet/cython,encukou/cython,hpfem/cython,mcanthony/cython,slonik-az/cython,mcanthony/cython,c-blake/cython,ChristopherHogan/cython,hickford/cython,marscher/cython,slonik-az/cython,hickford/cython,fperez/cython,encukou/cython