mirror of
https://github.com/wrabit/django-cotton.git
synced 2025-09-13 10:06:18 +00:00
moved completely to the regex compiler
This commit is contained in:
parent
2e21b45eee
commit
3f9cd85872
13 changed files with 565 additions and 492 deletions
|
@ -22,14 +22,14 @@ def configure_django():
|
|||
"DIRS": ["example_project/templates"],
|
||||
"OPTIONS": {
|
||||
"loaders": [
|
||||
(
|
||||
"django.template.loaders.cached.Loader",
|
||||
[
|
||||
"django_cotton.cotton_loader.Loader",
|
||||
"django.template.loaders.filesystem.Loader",
|
||||
"django.template.loaders.app_directories.Loader",
|
||||
],
|
||||
),
|
||||
# (
|
||||
# "django.template.loaders.cached.Loader",
|
||||
# [
|
||||
"django_cotton.cotton_loader.Loader",
|
||||
"django.template.loaders.filesystem.Loader",
|
||||
"django.template.loaders.app_directories.Loader",
|
||||
# ],
|
||||
# ),
|
||||
],
|
||||
"builtins": [
|
||||
"django_cotton.templatetags.cotton",
|
||||
|
@ -85,7 +85,7 @@ def main():
|
|||
configure_django()
|
||||
|
||||
runs = 5
|
||||
iterations = 500
|
||||
iterations = 5000
|
||||
|
||||
print(f"Running benchmarks with {runs} runs, {iterations} iterations each")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue