some optimisations
[tiramisu.git] / tiramisu / option / optiondescription.py
index ecb7c86..7db7f1b 100644 (file)
@@ -74,10 +74,11 @@ class OptionDescription(BaseOption, StorageOptionDescription):
                                               'dynoptiondescription'))
             old = child
         self._add_children(child_names, children)
-        self._cache_consistencies = None
+        _setattr = object.__setattr__
+        _setattr(self, '_cache_consistencies', None)
         # the group_type is useful for filtering OptionDescriptions in a config
-        self._group_type = groups.default
-        self._is_build_cache = False
+        _setattr(self, '_group_type', groups.default)
+        _setattr(self, '_is_build_cache', False)
 
     def impl_getdoc(self):
         return self.impl_get_information('doc')