1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/internal/testutil
Kir Kolyshkin f0cab0e285 TestImportExtremelyLargeImageWorks: optimize DevZero
According to https://github.com/golang/go/issues/5373, go recognizes
(and optimizes for) the following syntax:

```go
for i := range b {
	b[i] = 0
}
```

so let's use it. Limited testing shows ~7.5x speed increase,
compared to the previously used syntax.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2017-12-28 13:08:41 -08:00
..
helpers.go TestImportExtremelyLargeImageWorks: optimize DevZero 2017-12-28 13:08:41 -08:00
stringutils.go Separate the GenerateRandomAlphaOnlyString function from stringutils 2017-10-28 09:03:02 +08:00
stringutils_test.go Separate the GenerateRandomAlphaOnlyString function from stringutils 2017-10-28 09:03:02 +08:00