controls/DebugVariablePanel/RingBuffer.py
branchpython3
changeset 3750 f62625418bff
parent 2742 5f7445b582d4
child 3916 6ca1adad3f0e
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
    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'
    47         print('compacting')
    48         self.buffer[:self.count] = self.view
    48         self.buffer[:self.count] = self.view
    49         self.cursor -= self.size
    49         self.cursor -= self.size
    50 
    50