Lines Matching refs:size
81 size: int,
83 """Return the cache class for the given size."""
84 if size == 0:
87 if size < 0:
90 return LRUCache(size) # type: ignore
235 The size of the cache. Per default this is ``400`` which means
237 out the least recently used template. If the cache size is set to
238 ``0`` templates are recompiled all the time, if the cache size is
242 The cache size was increased to 400 from a low 50.
1580 If buffering is enabled with a buffer size of 5, five items are combined
1631 def _buffered_generator(self, size: int) -> t.Iterator[str]:
1638 while c_size < size:
1650 def enable_buffering(self, size: int = 5) -> None:
1651 """Enable buffering. Buffer `size` items before yielding them."""
1652 if size <= 1:
1653 raise ValueError("buffer size too small")
1656 self._next = partial(next, self._buffered_generator(size))