mirror of
https://github.com/simonw/datasette.git
synced 2026-10-21 08:47:01 +02:00
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
13 lines
562 B
Diff
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
|