(self)
Collect garbage from string space. Compactify string storage.
Collect garbage from string space. Compactify string storage.
Collect garbage from string space . Compactify string storage .
def _collect_garbage(self):
        """Collect garbage from string space. Compactify string storage."""
        if not self._allow_collect:
            return
        # find all strings that are actually referenced
        stack_strings = [value.view() for stack in self._stack for value in stack if isinstance(value, values.String)]
        string_ptrs = self.scalars.get_strings() + self.arrays.get_strings() + stack_strings
        self.strings.collect_garbage(string_ptrs)
def _collect_garbage ( self ) : if not self . _allow_collect : return # find all strings that are actually referenced stack_strings = [ value . view ( ) for stack in self . _stack for value in stack if isinstance ( value , values . String ) ] string_ptrs = self . scalars . get_strings ( ) + self . arrays . get_strings ( ) + stack_strings self . strings . collect_garbage ( string_ptrs )