Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions
jinja2.optimizer Namespace Reference

Classes

class  Optimizer
 

Functions

nodes.Node optimize (nodes.Node node, "Environment" environment)
 

Detailed Description

The optimizer tries to constant fold expressions and modify the AST
in place so that it should be faster to evaluate.

Because the AST does not contain all the scoping information and the
compiler has to find that out, we cannot do all the optimizations we
want. For example, loop unrolling doesn't work because unrolled loops
would have a different scope. The solution would be a second syntax tree
that stored the scoping rules.

Function Documentation

◆ optimize()

nodes.Node jinja2.optimizer.optimize ( nodes.Node  node,
"Environment"  environment 
)
The context hint can be used to perform an static optimization
based on the context given.