[Zope-dev] Re: [Interested?] New use for Zope+CMF+Archetypes --
startup time improvements
Dieter Maurer
dieter at handshake.de
Fri May 27 08:50:21 EDT 2005
Dieter Maurer wrote at 2005-5-13 19:26 +0200:
> ... high Zope startup time ...
>To overcome this obstacle, we tweaked Zope and fixed Python's import
>mechanism such that Zope now starts either out of a ZIP archive
>or as a frozen application.
> ...
>In more details, we did:
>
> * implement a package for a new kind of "url"s "pypackage:"
> for package relative access to resources.
>
> The package monkey patches Python's "open", "os.listdir",
> "os.stat" to provide transparent access to
> "pypackage:" identified resources.
>
> It currently support package relative access for
> packages loaded from the file system, from a ZIP
> archive and from the executable itself (i.e. frozen packages).
> In the last case, the resources are in a separate ZIP
> archive.
>
> This package might be interesting for Python as a whole
> as it is not Zope specific.
I have now released this part as independent Python packages
"dllimporter" and "packageresources".
You can find them via
<http://www.dieter.handshake.de/pyprojects>
In case, they should be included into Zope, I would give them
a dual license (my own BSD-like and ZPL).
--
Dieter
More information about the Zope-Dev
mailing list