Skip to content

Instantly share code, notes, and snippets.

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