UA PYCON 2012. Kostia Lopuhin. Partial evaluation in Python

Опубликовано: 04 Июль 2026
на канале: UA Pycon
209
0

20-21.10.2012
UA PYCON 2012. day 1 Hall B
Kostia Lopuhin.
Partial evaluation in Python

Partial evaluation is a powerful optimization technique that allows you to use the strengths of Python (expressive, fast runtime), and avoid it's weaknesses (slow interpretation). It uses information available at run-time to generate specialized program code that runs faster than the generic one. Partial evaluation has a lot of successful applications, but is not widely used in the Python community.

The talk will focus on:

what is partial evaluation
simple example of partial evaluation, it's analysis and benchmark
when to use partial evaluation
real-world example: 10x speedup of an OLAP calculation engine
practical advice, problems, working around them
partial evaluation library for Python

Other videos from conference, talk descriptions and presentation files http://ua.pycon.org/speaking/