[rtags] speepup initialization by avoiding to get file entity types relations (useless) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 27 Jan 2011 07:42:18 +0100
branchstable
changeset 6899 e592fb8ee27b
parent 6898 60cbb2b39ca9
child 6900 fcd4e6beec09
[rtags] speepup initialization by avoiding to get file entity types relations (useless)
rtags.py
--- a/rtags.py	Wed Jan 26 17:44:38 2011 +0100
+++ b/rtags.py	Thu Jan 27 07:42:18 2011 +0100
@@ -105,6 +105,8 @@
 
     def apply(self, schema, func):
         for eschema in schema.entities():
+            if eschema.final:
+                continue
             for rschema, tschemas, role in eschema.relation_definitions(True):
                 for tschema in tschemas:
                     if role == 'subject':