Issue 2015: Possible optimisations in kwargs handling (original) (raw)
Issue2015
Created on 2008-02-06 00:45 by amaury.forgeotdarc, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg62085 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * ![]() |
Date: 2008-02-06 00:45 |
This is a reminder for the comment on top of ceval.c: /* XXX TO DO: XXX speed up searching for keywords by using a dictionary XXX document it! */ It was also suggested to disallow subclasses of str in variable names, in order to optimize comparisons. This restriction is not necessary if a dict lookup is used: comparisons are less frequent and will often succeed when comparing pointers of interned strings. | ||
msg62267 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2008-02-11 00:40 |
Amaury, you may take a look at the patch in issue #1819. Also, dict lookups have a big overhead compared to raw pointer compares, I'm not sure naively converting all kwargs handling to dict lookups would make things faster. | ||
msg98083 - (view) | Author: Brian Curtin (brian.curtin) * ![]() |
Date: 2010-01-20 16:14 |
This was handled in r65241 as a result of #1819. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:30 | admin | set | github: 46299 |
2010-01-20 16:14:22 | brian.curtin | set | status: open -> closedsuperseder: Speed hack for function calls with named parametersnosy: + brian.curtinmessages: + resolution: fixedstage: resolved |
2008-02-11 00:40:19 | pitrou | set | nosy: + pitroumessages: + |
2008-02-06 12:06:30 | christian.heimes | set | priority: normalcomponents: + Interpreter Core |
2008-02-06 00:45:14 | amaury.forgeotdarc | create |