GabeDottl / NineSlashNine-PythonAutocomplete

Other
0 stars 0 forks source link

Auto-micro-optimize: replace repetitive non-mutating function calls w/vars #28

Open GabeDottl opened 5 years ago

GabeDottl commented 5 years ago

e.g. len(node.children) calls in parso builder.

GabeDottl commented 5 years ago

Could be interesting to have a 'compiled' option which takes code and applies as many optimizations as it can (perhaps even testing them) and make this dynamically generated as a pre-run step instead of something that's actually committed. Allows room for optimizations at the cost of readability.