MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Sort

Method Sort

internal/iplibrary/ip_list.go:70–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (this *IPList) Sort() {
71 this.mu.Lock()
72 this.sortRangeItems(false)
73 this.mu.Unlock()
74}
75
76func (this *IPList) Delete(itemId uint64) {
77 this.mu.Lock()

Callers 6

processItemsMethod · 0.80
TestNewIPList_MemoryFunction · 0.80
TestIPList_Contains_ManyFunction · 0.80
BenchmarkIPList_AddFunction · 0.80
BenchmarkIPList_SortFunction · 0.80
updateDiskMethod · 0.80

Calls 3

sortRangeItemsMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 4

TestNewIPList_MemoryFunction · 0.64
TestIPList_Contains_ManyFunction · 0.64
BenchmarkIPList_AddFunction · 0.64
BenchmarkIPList_SortFunction · 0.64