gh-124503: Optimize ast.literal_eval() for small input (GH-137010)
The implementation does not create anymore local functions which reduces the overhead for small inputs. Some other calls are inlined into a single `_convert_literal` function. We have a gain of 10-20% for small inputs and only 1-2% for bigger inputs.
K
Krzysztof Magusiak committed
b723c8be071afcf3f865c55a5efb6da54f7695a0
Parent: d5191ba
Committed by GitHub <noreply@github.com>
on 7/31/2025, 9:55:00 AM