datasette/perf/request-response/patches/optional/critic-3-extras-sequential.diff
Claude d1dbb40362
Add request/response profiling harness and proposed optimisation patches
Tools for profiling Datasette's request/response cycle in-process with
Python 3.15's profiling.sampling, plus the patches proposed by the study
(one per optimisation, and ALL-combined.diff). The patches are not
applied to the code. A report with measurements follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F8mEgRS8swZfYqwqrVMeo5
2026-10-13 00:12:35 +00:00

13 lines
562 B
Diff

diff --git a/datasette/extras.py b/datasette/extras.py
index fb8c2e0..c9b500d 100644
--- a/datasette/extras.py
+++ b/datasette/extras.py
@@ -96,7 +96,7 @@ class ExtraRegistry:
def _registry_for_scope(self, scope):
registry = self._scope_registries.get(scope)
if registry is None:
- registry = Registry()
+ registry = Registry(parallel=False)
for cls in self.classes_for_scope(scope):
registry.register(cls().resolve, name=cls.key())
self._scope_registries[scope] = registry