mirror of
https://github.com/golang/go
synced 2024-11-22 19:54:39 -07:00
strconv: remove some test TODOs and adjust malloc limits lower
These no longer allocate. R=golang-dev, dave CC=golang-dev https://golang.org/cl/8340047
This commit is contained in:
parent
c80f5b9bf7
commit
b6a39a2545
@ -20,14 +20,12 @@ var (
|
|||||||
desc string
|
desc string
|
||||||
fn func()
|
fn func()
|
||||||
}{
|
}{
|
||||||
// TODO(bradfitz): this might be 0, once escape analysis is better
|
{0, `AppendInt(localBuf[:0], 123, 10)`, func() {
|
||||||
{1, `AppendInt(localBuf[:0], 123, 10)`, func() {
|
|
||||||
var localBuf [64]byte
|
var localBuf [64]byte
|
||||||
AppendInt(localBuf[:0], 123, 10)
|
AppendInt(localBuf[:0], 123, 10)
|
||||||
}},
|
}},
|
||||||
{0, `AppendInt(globalBuf[:0], 123, 10)`, func() { AppendInt(globalBuf[:0], 123, 10) }},
|
{0, `AppendInt(globalBuf[:0], 123, 10)`, func() { AppendInt(globalBuf[:0], 123, 10) }},
|
||||||
// TODO(bradfitz): this might be 0, once escape analysis is better
|
{0, `AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)`, func() {
|
||||||
{1, `AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)`, func() {
|
|
||||||
var localBuf [64]byte
|
var localBuf [64]byte
|
||||||
AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)
|
AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)
|
||||||
}},
|
}},
|
||||||
|
Loading…
Reference in New Issue
Block a user