summaryrefslogtreecommitdiff
path: root/docs/topics/performance.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/performance.txt')
-rw-r--r--docs/topics/performance.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/topics/performance.txt b/docs/topics/performance.txt
index 04554226c0..4ba71880c4 100644
--- a/docs/topics/performance.txt
+++ b/docs/topics/performance.txt
@@ -120,9 +120,13 @@ do them faster than the template language can::
# of the Python objects
len(my_bicycles)
- # Django template filter
- # slower still, because it will have to count them in Python anyway,
- # and because of template language overheads
+.. code-block:: html+django
+
+ <!--
+ Django template filter
+ slower still, because it will have to count them in Python anyway,
+ and because of template language overheads
+ -->
{{ my_bicycles|length }}
Generally speaking, the most appropriate level for the job is the lowest-level