Rev 2004: (jam) lazy_import module allows on-demand loading of objects, can help startup time in /home/pqm/archives/thelove/bzr/+trunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed Sep 13 03:27:01 BST 2006
------------------------------------------------------------
revno: 2004
revision-id: pqm at pqm.ubuntu.com-20060913022700-feca914a6d5495f2
parent: pqm at pqm.ubuntu.com-20060912235634-1c39364c1566488a
parent: john at arbash-meinel.com-20060913021602-3a0be26095515136
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2006-09-13 03:27:00 +0100
message:
(jam) lazy_import module allows on-demand loading of objects, can help startup time
added:
bzrlib/inspect_for_copy.py inspect_for_copy.py-20060912223659-9ccpdogzwxqznpq1-1
bzrlib/lazy_import.py lazy_import.py-20060910203832-f77c54gf3n232za0-1
bzrlib/tests/test_lazy_import.py test_lazy_import.py-20060910203832-f77c54gf3n232za0-2
modified:
HACKING HACKING-20050805200004-2a5dc975d870f78c
NEWS NEWS-20050323055033-4e00b5db738777ff
bzr bzr.py-20050313053754-5485f144c7006fa6
bzrlib/errors.py errors.py-20050309040759-20512168c4e14fbd
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
profile_imports.py profile_imports.py-20060618020306-k5uw80achysrokj9-1
------------------------------------------------------------
merged: john at arbash-meinel.com-20060913021602-3a0be26095515136
parent: john at arbash-meinel.com-20060913020937-2df2f49f9a28ec43
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 21:16:02 -0500
message:
Add a test for side-effects from using ScopeReplacer
------------------------------------------------------------
merged: john at arbash-meinel.com-20060913020937-2df2f49f9a28ec43
parent: john at arbash-meinel.com-20060913015742-26daf2a7676b904e
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 21:09:37 -0500
message:
Update HACKING and docstrings
------------------------------------------------------------
merged: john at arbash-meinel.com-20060913015742-26daf2a7676b904e
parent: john at arbash-meinel.com-20060913015231-b2d4a34beacbd0c0
parent: pqm at pqm.ubuntu.com-20060912235634-1c39364c1566488a
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 20:57:42 -0500
message:
[merge] bzr.dev 2003
------------------------------------------------------------
merged: john at arbash-meinel.com-20060913015231-b2d4a34beacbd0c0
parent: john at arbash-meinel.com-20060912231013-10a9f5573a3bae44
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 20:52:31 -0500
message:
cherry-pick the inspect_for_copy changes
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912231013-10a9f5573a3bae44
parent: john at arbash-meinel.com-20060912220202-36e9c6beb4113b05
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 18:10:13 -0500
message:
Clean up comment as suggested by Robert
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912220202-36e9c6beb4113b05
parent: john at arbash-meinel.com-20060912203631-00b158854d709a81
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 17:02:02 -0500
message:
Update --profile-imports to support the new lazy_import code
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912203631-00b158854d709a81
parent: john at arbash-meinel.com-20060912193702-22c752299731a663
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 15:36:31 -0500
message:
fix typo
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912193702-22c752299731a663
parent: john at arbash-meinel.com-20060912190727-35ae1dff7a95b789
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 14:37:02 -0500
message:
HACKING and NEWS
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912190727-35ae1dff7a95b789
parent: john at arbash-meinel.com-20060912184249-83efc58bcc327550
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 14:07:27 -0500
message:
Write a simple wrapper function to make lazy imports easy.
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912184249-83efc58bcc327550
parent: john at arbash-meinel.com-20060912173452-ef9e20b8a52ec3e6
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 13:42:49 -0500
message:
Add more structured error handling
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912173452-ef9e20b8a52ec3e6
parent: john at arbash-meinel.com-20060912173323-112d28652516fd94
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 12:34:52 -0500
message:
Small cleanup
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912173323-112d28652516fd94
parent: john at arbash-meinel.com-20060912003109-ac4e59e3a2acee16
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Tue 2006-09-12 12:33:23 -0500
message:
Raise an exception when ScopeReplacer has been misused
------------------------------------------------------------
merged: john at arbash-meinel.com-20060912003109-ac4e59e3a2acee16
parent: john at arbash-meinel.com-20060911232801-d7930bab42c6a81d
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 19:31:09 -0500
message:
Everything is now hooked up
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911232801-d7930bab42c6a81d
parent: john at arbash-meinel.com-20060911225535-b20aae01acc390b8
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 18:28:01 -0500
message:
Add tests for converting from a string to the final map
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911225535-b20aae01acc390b8
parent: john at arbash-meinel.com-20060911224857-d7008be21aeee33e
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 17:55:35 -0500
message:
small test updates
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911224857-d7008be21aeee33e
parent: john at arbash-meinel.com-20060911224313-dbd20de5b9c8f5eb
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 17:48:57 -0500
message:
Switch from individual functions to a class
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911224313-dbd20de5b9c8f5eb
parent: john at arbash-meinel.com-20060911220906-41ee1e306aad0464
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 17:43:13 -0500
message:
Test the ability to take a bunch of import lines and canonicalize them
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911220906-41ee1e306aad0464
parent: john at arbash-meinel.com-20060911215626-0bbe834149b22b07
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 17:09:06 -0500
message:
Handle 'from foo import bar' syntax
This includes:
from foo import bar
from foo import bar, baz
from foo import bar as bing, baz as bar
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911215626-0bbe834149b22b07
parent: john at arbash-meinel.com-20060911205344-177a893284ee9ff7
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 16:56:26 -0500
message:
Create a method for handling 'import *' syntax.
This handles:
import foo
import foo.bar
import foo.bar as baz
import foo, foo.bar, baz.bing
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911205344-177a893284ee9ff7
parent: john at arbash-meinel.com-20060911205155-e86e48e3fa709e7f
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 15:53:44 -0500
message:
Split up TestImportReplacer into a helper class
Getting ready to test a simple import line parser.
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911205155-e86e48e3fa709e7f
parent: john at arbash-meinel.com-20060911201045-2a703743d89ce392
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 15:51:55 -0500
message:
Test a nested import with multiple deep children
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911201045-2a703743d89ce392
parent: john at arbash-meinel.com-20060911200350-e4f917892ea062f2
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 15:10:45 -0500
message:
Test that we can add more children to the existing lazy object
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911200350-e4f917892ea062f2
parent: john at arbash-meinel.com-20060911195518-1a2bc78a3ab51ba9
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 15:03:50 -0500
message:
Test that we can lazy import a module, and its children
------------------------------------------------------------
merged: john at arbash-meinel.com-20060911195518-1a2bc78a3ab51ba9
parent: john at arbash-meinel.com-20060910212031-13eaac6b8e5a1f7b
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Mon 2006-09-11 14:55:18 -0500
message:
Change how parameters are passed to support 'import root1.mod1 as mod1'
------------------------------------------------------------
merged: john at arbash-meinel.com-20060910212031-13eaac6b8e5a1f7b
parent: john at arbash-meinel.com-20060910205901-ceb5929c1497f81f
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Sun 2006-09-10 16:20:31 -0500
message:
Basic single-level imports work
------------------------------------------------------------
merged: john at arbash-meinel.com-20060910205901-ceb5929c1497f81f
parent: john at arbash-meinel.com-20060910203926-ae731f6bb165d6fa
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Sun 2006-09-10 15:59:01 -0500
message:
start working on some lazy importing code
------------------------------------------------------------
merged: john at arbash-meinel.com-20060910203926-ae731f6bb165d6fa
parent: pqm at pqm.ubuntu.com-20060909180200-96e41112dff213f3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: lazy_importer
timestamp: Sun 2006-09-10 15:39:26 -0500
message:
Adding a ScopeReplacer class, which can replace itself on demand
More information about the bazaar-commits
mailing list