> Good point, but one of the reasons I have this self-written routine 
> is that os.path.commonprefix is unfortunately purely 
> string-oriented and not directory-aware. Check the return value of
>     os.path.commonprefix(['a/b.1/c', 'a/b.2/d'])
> which is 'a/b.', which defeats its use for my purposes. It's paths 
> after all, not strings.

Thomas, fair point. And on checking again I see that you're using the
split paths instead of simple strings in your recursion. So even our
depth, with 8 folders, will be a trivial hit.

And I guess that you've profiled the generator application to see where
the biggest hit is. I know full well the perils of pre-optimising code.

Hugh

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to