From 17d8acea0d0f2cc34ce9ecf103d950df2a8f18b9 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Wed, 18 Oct 2023 08:53:34 -0700 Subject: [PATCH 1/2] Add caveats about adopting SPEC 1 --- spec-0001/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec-0001/index.md b/spec-0001/index.md index c6dd22a4..a77b531c 100644 --- a/spec-0001/index.md +++ b/spec-0001/index.md @@ -49,6 +49,10 @@ Endorsing this SPEC means agreeing, in principle, with the advantages of lazy lo ### Ecosystem Adoption +{{< notice warning >}} +Not all projects should use lazy loading. +{{< /notice >}} + Adopting this SPEC means implementing, using the `lazy_loader` package or any other mechanism (such as module `__getattr__`), lazy loading of subpackages and, if desired, subpackage attributes. Lazy loading has been adopted by From 400680f06a97d557c935fbf88badaef332ad5548 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Thu, 19 Oct 2023 10:33:51 -0700 Subject: [PATCH 2/2] Update spec-0001/index.md Co-authored-by: Stefan van der Walt --- spec-0001/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-0001/index.md b/spec-0001/index.md index a77b531c..e1036694 100644 --- a/spec-0001/index.md +++ b/spec-0001/index.md @@ -50,7 +50,7 @@ Endorsing this SPEC means agreeing, in principle, with the advantages of lazy lo ### Ecosystem Adoption {{< notice warning >}} -Not all projects should use lazy loading. +We do not recommend lazy loading for all projects. E.g., small projects with low import overheads do not need it. Lazy loading is useful when you are concerned about subpackage import times, but also want to make those subpackages available for interactive exploration in, e.g., IPython. {{< /notice >}} Adopting this SPEC means implementing, using the `lazy_loader` package or any other mechanism (such as module `__getattr__`), lazy loading of subpackages and, if desired, subpackage attributes.