controls/DebugVariablePanel/RingBuffer.py
changeset 3917 43e7fd0cb88e
parent 3916 6ca1adad3f0e
equal deleted inserted replaced
3915:b5017dd5c049 3917:43e7fd0cb88e
    42     def compact(self):
    42     def compact(self):
    43         """
    43         """
    44         note: only when this function is called, is an O(size) performance hit incurred,
    44         note: only when this function is called, is an O(size) performance hit incurred,
    45         and this cost is amortized over the whole padding space
    45         and this cost is amortized over the whole padding space
    46         """
    46         """
    47         print('compacting')
       
    48         self.buffer[:self.count] = self.view
    47         self.buffer[:self.count] = self.view
    49         self.cursor -= self.size
    48         self.cursor -= self.size
    50 
    49