Skip to content

Instantly share code, notes, and snippets.

@shiyanhui
Last active July 21, 2018 04:21
Show Gist options
  • Save shiyanhui/db06b13e4cc565f19703b07da5502566 to your computer and use it in GitHub Desktop.
Save shiyanhui/db06b13e4cc565f19703b07da5502566 to your computer and use it in GitHub Desktop.
package main
import (
"time"
)
type InfohashIPType [2]uint64
func main() {
table := make(map[InfohashIPType]struct{}, 100000000)
var i, j uint64
for i = 0; i < 10000; i++ {
for j = 0; j < 10000; j++ {
table[InfohashIPType{i, j}] = struct{}{}
}
}
time.Sleep(time.Minute)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment