portage.dep._use_dep: Rewrite the parser for better readability and speed
authorSebastian Luther <SebastianLuther@gmx.de>
Sun, 22 Aug 2010 13:22:08 +0000 (15:22 +0200)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Aug 2010 18:32:19 +0000 (11:32 -0700)
commitaa0250820f53fc0bb32e49ca753af136c6a4d19e
tree1963c972466c96abefd95b50ada039a0b253972b
parent25070b30cfb8fcd4383318998b0a7853e5569d52
portage.dep._use_dep: Rewrite the parser for better readability and speed

Using a regex leads to better readability, but no speed change.
Replacing slot_dict_class with a simple dict results in ~1/3 run time decrease in my tests.
pym/portage/dep/__init__.py
pym/portage/tests/dep/testAtom.py