gvisor/pkg/safemem
Andrei Vagin b0333d33a2 Optimize safemem.Zero
There is a loop that fills a byte array with zero-s. Let's use copy() instead
of setting elements one by one.

The new implementation is two time faster than the previous one and it is more
than 10x faster with the race detector.

Reported-by: syzbot+5f57d988a5f929af5a91@syzkaller.appspotmail.com
PiperOrigin-RevId: 369283919
2021-04-19 13:01:59 -07:00
..
BUILD Optimize safemem.Zero 2021-04-19 13:01:59 -07:00
block_unsafe.go Optimize safemem.Zero 2021-04-19 13:01:59 -07:00
io.go Update package locations. 2020-01-27 15:31:32 -08:00
io_test.go Update package locations. 2020-01-27 15:31:32 -08:00
safemem.go Update package locations. 2020-01-27 15:31:32 -08:00
seq_test.go Ensure that safemem.BlockSeqOf(safemem.Block{}) produces an empty BlockSeq. 2020-03-04 14:30:27 -08:00
seq_unsafe.go [op] Replace syscall package usage with golang.org/x/sys/unix in pkg/. 2021-03-03 10:25:58 -08:00