Skip to content
  • Jakob Stoklund Olesen's avatar
    Add an iplist::clearAndLeakNodesUnsafely() function. · 4ccabc1d
    Jakob Stoklund Olesen authored
    The iplist::clear() function can be quite expensive because it traverses
    the entire list, calling deleteNode() and removeNodeFromList() on each
    element. If node destruction and deallocation can be handled some other
    way, clearAndLeakNodesUnsafely() can be used to jettison all nodes
    without bringing them into cache.
    
    The function name is meant to be ominous.
    
    llvm-svn: 171540
    4ccabc1d
Loading