mirror of
https://github.com/containers/skopeo.git
synced 2025-09-10 19:19:53 +00:00
vendor: update containers/storage and containers/image
some tests I've done to try out the difference in performance: I am using a directory repository so to not depend on the network. User time (seconds): 39.40 System time (seconds): 6.83 Percent of CPU this job got: 121% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:38.07 User time (seconds): 8.32 System time (seconds): 1.62 Percent of CPU this job got: 128% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:07.72 User time (seconds): 42.68 System time (seconds): 6.64 Percent of CPU this job got: 162% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:30.44 User time (seconds): 8.94 System time (seconds): 1.51 Percent of CPU this job got: 178% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:05.85 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
25
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
25
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@@ -8,17 +8,30 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "unsafe"
|
||||
import (
|
||||
"runtime"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// Round the length of a raw sockaddr up to align it properly.
|
||||
func cmsgAlignOf(salen int) int {
|
||||
salign := SizeofPtr
|
||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
||||
// Solaris kernels still require 32-bit aligned access to
|
||||
// network subsystem.
|
||||
if darwin64Bit || dragonfly64Bit || solaris64Bit {
|
||||
salign = 4
|
||||
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "dragonfly", "solaris":
|
||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
||||
// Solaris kernels still require 32-bit aligned access to
|
||||
// network subsystem.
|
||||
if SizeofPtr == 8 {
|
||||
salign = 4
|
||||
}
|
||||
case "openbsd":
|
||||
// OpenBSD armv7 requires 64-bit alignment.
|
||||
if runtime.GOARCH == "arm" {
|
||||
salign = 8
|
||||
}
|
||||
}
|
||||
|
||||
return (salen + salign - 1) & ^(salign - 1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user