update comments, mostly TODO/FIXME notes

This commit is contained in:
Arceliar 2018-01-26 17:30:51 -06:00
parent 0cb7b3872d
commit c18d863a3e
13 changed files with 62 additions and 46 deletions

View file

@ -42,7 +42,7 @@ func util_unlockthread() {
runtime.UnlockOSThread()
}
/*
/* Used previously, but removed because casting to an interface{} allocates...
var byteStore sync.Pool = sync.Pool{
New: func () interface{} { return []byte(nil) },
}
@ -52,7 +52,7 @@ func util_getBytes() []byte {
}
func util_putBytes(bs []byte) {
byteStore.Put(bs) // FIXME? The cast to interface{} allocates...
byteStore.Put(bs) // This is the part that allocates
}
*/