Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geektutu/high-performance-go
/ functions
Functions
135 in github.com/geektutu/high-performance-go
⨍
Functions
135
◇
Types & classes
19
↓ 8 callers
Function
printLenCap
(nums []int)
charpter-2/code/hpg-slice/slice_test.go:11
↓ 6 callers
Method
Add
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:12
↓ 6 callers
Function
benchmark
(b *testing.B, rw RW, read, write int)
charpter-3/code/hpg-mutex/mutex_test.go:8
↓ 6 callers
Function
benchmark
(b *testing.B, f func(int, string) string)
charpter-2/code/hpg-string-concat/concat_test.go:70
↓ 3 callers
Method
Write
()
charpter-3/code/hpg-mutex/mutex.go:9
↓ 3 callers
Function
read
(name string, c *sync.Cond)
charpter-3/code/hpg-sync-cond/main.go:11
↓ 2 callers
Method
Has
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:7
↓ 2 callers
Function
generateItems
(n int)
charpter-2/code/hpg-range/range_test.go:127
↓ 2 callers
Function
generateWithCap
(n int)
charpter-2/code/hpg-range/range_test.go:56
↓ 2 callers
Function
randomString
(n int)
charpter-2/code/hpg-string-concat/concat_test.go:13
↓ 2 callers
Function
test
(t *testing.T, f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:48
↓ 2 callers
Function
testLastChars
(t *testing.T, f func([]int) []int)
charpter-2/code/hpg-slice/slice_test.go:63
↓ 1 callers
Method
Close
()
charpter-2/code/hpg-empty-struct/main.go:18
↓ 1 callers
Function
Increase
()
charpter-4/code/hpg-escape-analysis/main_closure.go:5
↓ 1 callers
Method
Read
()
charpter-3/code/hpg-mutex/mutex.go:10
↓ 1 callers
Function
ReadConfig
()
charpter-3/code/hpg-sync-once/main.go:21
↓ 1 callers
Function
createDemo
(name string)
charpter-4/code/hpg-escape-analysis/main_normal.go:10
↓ 1 callers
Function
createDemo
(name string)
charpter-4/code/hpg-escape-analysis/main_pointer.go:10
↓ 1 callers
Function
do
(taskCh chan int)
charpter-3/code/hpg-exit-goroutine/exit_test.go:10
↓ 1 callers
Function
do2phases
(phase1, done chan bool)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:68
↓ 1 callers
Function
doCheckClose
(taskCh chan int)
charpter-3/code/hpg-exit-goroutine/exit_test.go:35
↓ 1 callers
Function
foo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice_return.go:5
↓ 1 callers
Function
foo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice.go:5
↓ 1 callers
Function
foo
(a [2]int)
charpter-a1/code/hpg-gotchas-slice-array/main_arr.go:5
↓ 1 callers
Function
foo
(a *[2]int)
charpter-a1/code/hpg-gotchas-slice-array/main_arr_ptr.go:5
↓ 1 callers
Function
foo
(a []int)
charpter-a1/code/hpg-gotchas-slice-array/main_slice.go:5
↓ 1 callers
Function
foo
(a *[]int)
charpter-a1/code/hpg-gotchas-slice-array/main_append_slice_ptr.go:5
↓ 1 callers
Function
generate
(n int)
charpter-4/code/hpg-escape-analysis/main_stack.go:22
↓ 1 callers
Function
generate8191
()
charpter-4/code/hpg-escape-analysis/main_stack.go:8
↓ 1 callers
Function
generate8192
()
charpter-4/code/hpg-escape-analysis/main_stack.go:15
↓ 1 callers
Function
generateWithCap
(n int)
charpter-2/code/hpg-slice/slice_test.go:47
↓ 1 callers
Function
max
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxvar.go:7
↓ 1 callers
Function
max
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxvarlocal.go:7
↓ 1 callers
Function
max
(num1, num2 int)
charpter-4/code/hpg-dead-code-elimination/maxconst.go:7
↓ 1 callers
Function
printMem
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:56
↓ 1 callers
Function
readConfig
()
charpter-2/code/hpg-reflect/main_json_env.go:17
↓ 1 callers
Function
sendTasks
()
charpter-3/code/hpg-exit-goroutine/exit_test.go:20
↓ 1 callers
Function
sendTasksCheckClose
()
charpter-3/code/hpg-exit-goroutine/exit_test.go:49
↓ 1 callers
Function
square
(arr *[3]int)
charpter-2/code/hpg-slice/array_test.go:22
↓ 1 callers
Function
test
(demo *Demo)
charpter-4/code/hpg-escape-analysis/main_normal.go:16
↓ 1 callers
Function
timeout
(f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:24
↓ 1 callers
Function
timeoutFirstPhase
()
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:79
↓ 1 callers
Function
timeoutWithBuffer
(f func(chan bool))
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:36
↓ 1 callers
Function
worker
(ch chan struct{})
charpter-2/code/hpg-empty-struct/main_chan.go:5
↓ 1 callers
Function
write
(name string, c *sync.Cond)
charpter-3/code/hpg-sync-cond/main.go:20
Function
BenchmarkBuffer
(b *testing.B)
charpter-3/code/hpg-sync-pool/bufferpool_test.go:26
Function
BenchmarkBufferConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:80
Function
BenchmarkBufferWithPool
(b *testing.B)
charpter-3/code/hpg-sync-pool/bufferpool_test.go:17
Function
BenchmarkBuilderConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:79
Function
BenchmarkByteConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:81
Function
BenchmarkEqual
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:33
Function
BenchmarkEqualRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:34
Function
BenchmarkForIntSlice
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:65
Function
BenchmarkForPointer
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:135
Function
BenchmarkForStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:93
Function
BenchmarkNew
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:8
Function
BenchmarkPlusConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:77
Function
BenchmarkPreByteConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:82
Function
BenchmarkRangeIndexStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:105
Function
BenchmarkRangeIntSlice
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:77
Function
BenchmarkRangePointer
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:147
Function
BenchmarkRangeStruct
(b *testing.B)
charpter-2/code/hpg-range/range_test.go:116
Function
BenchmarkReadMore
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:29
Function
BenchmarkReadMoreRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:30
Function
BenchmarkReflectNew
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:16
Function
BenchmarkReflect_FieldByNameCacheSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:61
Function
BenchmarkReflect_FieldByNameSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:49
Function
BenchmarkReflect_FieldSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:37
Function
BenchmarkSet
(b *testing.B)
charpter-2/code/hpg-reflect/reflect_test.go:26
Function
BenchmarkSprintfConcat
(b *testing.B)
charpter-2/code/hpg-string-concat/concat_test.go:78
Function
BenchmarkUnmarshal
(b *testing.B)
charpter-3/code/hpg-sync-pool/structpool_test.go:28
Function
BenchmarkUnmarshalWithPool
(b *testing.B)
charpter-3/code/hpg-sync-pool/structpool_test.go:35
Function
BenchmarkWriteMore
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:31
Function
BenchmarkWriteMoreRW
(b *testing.B)
charpter-3/code/hpg-mutex/mutex_test.go:32
Method
Delete
(key string)
charpter-2/code/hpg-empty-struct/main_set.go:16
Method
Open
()
charpter-2/code/hpg-empty-struct/main.go:14
Method
Read
()
charpter-3/code/hpg-mutex/mutex.go:30
Method
Read
()
charpter-3/code/hpg-mutex/mutex.go:49
Method
Square
Square calculates the square of num
charpter-4/code/hpg-reduce-size/main.go:16
Function
Test2phasesTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:93
Function
TestArrayAssign
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:8
Function
TestArrayCopy
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:15
Function
TestArrayPointer
(t *testing.T)
charpter-2/code/hpg-slice/array_test.go:28
Function
TestBadTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:57
Function
TestBufferTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:60
Function
TestBuilderConcat
$ go test -bench="Concat$" -benchmem . BenchmarkPlusConcat-8 19 56289919 ns/op 530998079 B/op 10026 allocs/op Benc
charpter-2/code/hpg-string-concat/concat_test.go:92
Function
TestDo
(t *testing.T)
charpter-3/code/hpg-exit-goroutine/exit_test.go:28
Function
TestDoCheckClose
(t *testing.T)
charpter-3/code/hpg-exit-goroutine/exit_test.go:58
Function
TestGoodTimeout
(t *testing.T)
charpter-3/code/hpg-timeout-goroutine/timeout_test.go:58
Function
TestLastCharsByCopy
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:76
Function
TestLastCharsBySlice
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:75
Function
TestModifyForAndRange
(t *testing.T)
charpter-2/code/hpg-range/range_test.go:45
Function
TestRange
(t *testing.T)
charpter-2/code/hpg-range/range_test.go:10
Function
TestSlice
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:25
Function
TestSliceLenAndCap
(t *testing.T)
charpter-2/code/hpg-slice/slice_test.go:14
Method
Write
()
charpter-3/code/hpg-mutex/mutex.go:23
Method
Write
()
charpter-3/code/hpg-mutex/mutex.go:42
Function
bufferConcat
(n int, s string)
charpter-2/code/hpg-string-concat/concat_test.go:46
Function
builderConcat
(n int, str string)
charpter-2/code/hpg-string-concat/concat_test.go:37
Function
byteConcat
(n int, str string)
charpter-2/code/hpg-string-concat/concat_test.go:54
next →
1–100 of 135, ranked by callers