[Python-Dev] Re: .DLL vs .PYD search order

Fredrik Lundh fredrik@pythonware.com
Sun, 5 Dec 1999 19:22:57 +0100


> I've checked my imputil.py version (with caches enabled)
> against the builtin importer and noticed a performance
> downgrade by factor >2. This was enough to convince me
> of looking for other techniques to handle the problems
> I had at the time... you know, relative imports and things.

hmm.  I think I see the problem here...

you obviously attempted to use imputil to implement
non-standard import behaviour on top of the standard
storage system -- while we've used it to implement
standard import behaviour on top of non-standard
storage systems.

I don't know if imputil is good enough for the former,
and I don't think I care...  I've spent too many nights
debugging code that relied on clever, non-standard
hacks.

</F>

PS. on the performance side of things, did you know
that 're' can be up to ten times slower than 'regex'?
but people don't complain -- probably because it
allows them to do things they couldn't do before...