Roll our own parser for XIDs from the Begin record.
strconv.Atoi(string([]byte)) causes the temporary string to escape to the heap. This way we stay with a byte slice that does not escape.
Showing
Please register or sign in to comment
strconv.Atoi(string([]byte)) causes the temporary string to escape to the heap. This way we stay with a byte slice that does not escape.