youtube / spitfire

A high-performance Python template language
BSD 3-Clause "New" or "Revised" License
403 stars 59 forks source link

Explicitly alias lookups in the critical path for UDN resolution. #44

Closed nicksay closed 8 years ago

nicksay commented 8 years ago

This change changes direct symbol imports to aliases; from:

from spitfire.runtime import SYMBOL

to:

from spitfire import runtime
SYMBOL = runtime.SYMBOL

This allows clean module-level import statements and makes the reason for aliasing clearer (avoiding lookups for critical-path performance).

awbraunstein commented 8 years ago

lgtm