Commits

Sven Hendriks committed 0906049

More optimizations: Using __slots__ in Cell class to save a lot of memory when creating large documents

  • Participants
  • Parent commits e658d83

Comments (0)

Files changed (1)

File xlsxcessive/worksheet.py

         return ''
 
 class Cell(object):
+    __slots__ = ('_reference', '_coords', 'cell_type', '_value', 
+                 '_is_date', '_is_datetime', '_is_time', 'worksheet', 
+                 'format' , 'merge_range')
+
     def __init__(self, reference=None, value=None, coords=None, format=None, worksheet=None):
         self._reference = reference.upper() if reference else reference
         self._coords = coords