-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from Yelp/no_auto_self_part_2
No auto self: Part 2 - add a setting to disable auto-self
- Loading branch information
Showing
9 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from Cheetah.compile import compile_to_class | ||
from constants import BUILTIN_SRC | ||
from constants import NO_AUTO_SELF | ||
|
||
|
||
tmpl = compile_to_class(NO_AUTO_SELF + BUILTIN_SRC)() | ||
run = tmpl.respond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from Cheetah.compile import compile_to_class | ||
from constants import DOTTED_SL_SRC | ||
from constants import NO_AUTO_SELF | ||
|
||
|
||
class fooobj: | ||
bar = 'baz' | ||
|
||
|
||
tmpl = compile_to_class(NO_AUTO_SELF + DOTTED_SL_SRC)({'foo': fooobj}) | ||
run = tmpl.respond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from Cheetah.compile import compile_to_class | ||
from constants import GLOBAL_SRC | ||
from constants import NO_AUTO_SELF | ||
|
||
|
||
tmpl = compile_to_class(NO_AUTO_SELF + GLOBAL_SRC)() | ||
run = tmpl.respond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from Cheetah.compile import compile_to_class | ||
from constants import LOCAL_SRC | ||
from constants import NO_AUTO_SELF | ||
|
||
|
||
tmpl = compile_to_class(NO_AUTO_SELF + LOCAL_SRC)() | ||
run = tmpl.respond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from Cheetah.compile import compile_to_class | ||
from constants import NO_AUTO_SELF | ||
from constants import SL_SRC | ||
|
||
|
||
tmpl = compile_to_class(NO_AUTO_SELF + SL_SRC)({'foo': 'bar'}) | ||
run = tmpl.respond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
================================================================================ | ||
SHA = 8029956fa22330c173246082860ea99d4a0c6820 | ||
BEST_OF = 5 | ||
ITERATIONS = 10 | ||
TIME_PER_TEST = 200 | ||
bogomips : 5400.00 | ||
bogomips : 5400.00 | ||
bogomips : 5400.00 | ||
bogomips : 5400.00 | ||
bogomips : 5400.00 | ||
bogomips : 5400.00 | ||
-------------------------------------------------------------------------------- | ||
lookup_builtin_no_auto_self 135387 iterations | ||
lookup_builtin_opt_on 138447 iterations | ||
lookup_dotted_sl_no_auto_self 17749 iterations | ||
lookup_dotted_sl_opt_on 15045 iterations | ||
lookup_global_no_auto_self 139531 iterations | ||
lookup_global_opt_on 135761 iterations | ||
lookup_local_no_auto_self 121347 iterations | ||
lookup_local_opt_on 125481 iterations | ||
lookup_sl_no_auto_self 21191 iterations | ||
lookup_sl_opt_on 16228 iterations | ||
vffns_frame 40882 iterations | ||
vffns_sl 22944 iterations | ||
vffns_template 22382 iterations | ||
vffsl_frame 38382 iterations | ||
vffsl_sl 18030 iterations | ||
vffsl_template 17824 iterations | ||
write_markup 13481 iterations | ||
write_text 8009 iterations | ||
-------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters