go/src
Russ Cox d8541aa8d5 math/big: add benchmark of Exp with large modulus
Setting up for improving even modulus.

name                   time/op
ExpMont/Odd-16          240µs ± 2%
ExpMont/Even1-16        757µs ± 3%
ExpMont/Even2-16        755µs ± 1%
ExpMont/Even3-16        771µs ± 3%
ExpMont/Even4-16        775µs ± 3%
ExpMont/Even8-16        779µs ± 2%
ExpMont/Even32-16       778µs ± 3%
ExpMont/Even64-16       774µs ± 6%
ExpMont/Even96-16       776µs ± 4%
ExpMont/Even128-16      764µs ± 2%
ExpMont/Even255-16      761µs ± 3%
ExpMont/SmallEven1-16  45.6µs ± 1%
ExpMont/SmallEven2-16  44.3µs ± 2%
ExpMont/SmallEven3-16  44.1µs ± 5%
ExpMont/SmallEven4-16  47.1µs ± 6%

name                   alloc/op
ExpMont/Odd-16         2.53kB ± 0%
ExpMont/Even1-16       2.57kB ± 0%
ExpMont/Even2-16       2.57kB ± 0%
ExpMont/Even3-16       2.57kB ± 0%
ExpMont/Even4-16       2.57kB ± 0%
ExpMont/Even8-16       2.57kB ± 0%
ExpMont/Even32-16      2.57kB ± 0%
ExpMont/Even64-16      2.57kB ± 0%
ExpMont/Even96-16      2.57kB ± 0%
ExpMont/Even128-16     2.57kB ± 0%
ExpMont/Even255-16     2.57kB ± 0%
ExpMont/SmallEven1-16    872B ± 0%
ExpMont/SmallEven2-16    872B ± 0%
ExpMont/SmallEven3-16    872B ± 0%
ExpMont/SmallEven4-16    872B ± 0%

name                   allocs/op
ExpMont/Odd-16           21.0 ± 0%
ExpMont/Even1-16         24.0 ± 0%
ExpMont/Even2-16         24.0 ± 0%
ExpMont/Even3-16         24.0 ± 0%
ExpMont/Even4-16         24.0 ± 0%
ExpMont/Even8-16         24.0 ± 0%
ExpMont/Even32-16        24.0 ± 0%
ExpMont/Even64-16        24.0 ± 0%
ExpMont/Even96-16        24.0 ± 0%
ExpMont/Even128-16       24.0 ± 0%
ExpMont/Even255-16       24.0 ± 0%
ExpMont/SmallEven1-16    16.0 ± 0%
ExpMont/SmallEven2-16    16.0 ± 0%
ExpMont/SmallEven3-16    16.0 ± 0%
ExpMont/SmallEven4-16    16.0 ± 0%

Change-Id: I5278378b4209a97b16273be581533310e0e4110b
Reviewed-on: https://go-review.googlesource.com/c/go/+/420896
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-02 14:43:50 +00:00
..
archive
arena
bufio
builtin
bytes
cmd cmd/link: remove unnecessary use of sync.Once alongside sync.Mutex 2022-11-02 14:38:08 +00:00
compress
container
context
crypto crypto/x509: respect GODEBUG changes for allowing SHA1 certificates 2022-10-26 16:35:20 +00:00
database/sql
debug debug/elf: guard access to File.gnuVersym 2022-10-26 22:26:02 +00:00
embed
encoding encoding/xml: reduce depth limit on wasm 2022-10-31 20:35:56 +00:00
errors errors: add test for Join 2022-10-17 21:48:12 +00:00
expvar
flag flag: clarify that the main func at pkg.go.dev is part of a testing suite 2022-10-26 18:59:00 +00:00
fmt
go go/build: ignore files by extension before matching on name 2022-11-01 19:48:43 +00:00
hash hash/crc64: use slicing by 8 when the size is greater or equal than 2k 2022-10-27 16:52:41 +00:00
html
image
index/suffixarray
internal internal/testenv: adjust timeout calculations in CommandContext 2022-11-01 21:32:24 +00:00
io
log
math math/big: add benchmark of Exp with large modulus 2022-11-02 14:43:50 +00:00
mime
net net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
os syscall, os/exec: reject environment variables containing NULs 2022-11-01 16:40:37 +00:00
path
plugin
reflect reflect: panic when Value.Equal using two non-comparable values 2022-10-17 14:53:58 +00:00
regexp
runtime runtime: check for ErrWaitDelay in runBuiltTestProg 2022-11-01 21:32:26 +00:00
sort
strconv all: remove uses of rand.Seed 2022-10-26 16:24:57 +00:00
strings internal/bytealg: fix bug in index function for ppc64le/power9 2022-10-31 12:52:07 +00:00
sync sync: use atomic.Pointer for entry 2022-10-31 20:12:59 +00:00
syscall syscall, os/exec: reject environment variables containing NULs 2022-11-01 16:40:37 +00:00
testdata
testing testing: implement -cpu and -count for fuzz tests 2022-11-02 13:14:08 +00:00
text
time time: optimize appendInt and appendNanos 2022-10-24 19:23:32 +00:00
unicode
unsafe
vendor all: update golang.org/x/tools to 8166dca1ce 2022-10-26 00:11:50 +00:00
Make.dist
README.vendor
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod all: update golang.org/x/tools to 8166dca1ce 2022-10-26 00:11:50 +00:00
go.sum all: update golang.org/x/tools to 8166dca1ce 2022-10-26 00:11:50 +00:00
make.bash all: use Go 1.17.13 for bootstrap 2022-10-17 19:46:59 +00:00
make.bat all: use Go 1.17.13 for bootstrap 2022-10-17 19:46:59 +00:00
make.rc all: use Go 1.17.13 for bootstrap 2022-10-17 19:46:59 +00:00
race.bash
race.bat
run.bash
run.bat
run.rc

README.vendor

Vendoring in std and cmd
========================

The Go command maintains copies of external packages needed by the
standard library in the src/vendor and src/cmd/vendor directories.

In GOPATH mode, imports of vendored packages are resolved to these
directories following normal vendor directory logic
(see golang.org/s/go15vendor).

In module mode, std and cmd are modules (defined in src/go.mod and
src/cmd/go.mod). When a package outside std or cmd is imported
by a package inside std or cmd, the import path is interpreted
as if it had a "vendor/" prefix. For example, within "crypto/tls",
an import of "golang.org/x/crypto/cryptobyte" resolves to
"vendor/golang.org/x/crypto/cryptobyte". When a package with the
same path is imported from a package outside std or cmd, it will
be resolved normally. Consequently, a binary may be built with two
copies of a package at different versions if the package is
imported normally and vendored by the standard library.

Vendored packages are internally renamed with a "vendor/" prefix
to preserve the invariant that all packages have distinct paths.
This is necessary to avoid compiler and linker conflicts. Adding
a "vendor/" prefix also maintains the invariant that standard
library packages begin with a dotless path element.

The module requirements of std and cmd do not influence version
selection in other modules. They are only considered when running
module commands like 'go get' and 'go mod vendor' from a directory
in GOROOT/src.

Maintaining vendor directories
==============================

Before updating vendor directories, ensure that module mode is enabled.
Make sure GO111MODULE=off is not set ('on' or 'auto' should work).

Requirements may be added, updated, and removed with 'go get'.
The vendor directory may be updated with 'go mod vendor'.
A typical sequence might be:

    cd src
    go get -d golang.org/x/net@latest
    go mod tidy
    go mod vendor

Use caution when passing '-u' to 'go get'. The '-u' flag updates
modules providing all transitively imported packages, not only
the module providing the target package.

Note that 'go mod vendor' only copies packages that are transitively
imported by packages in the current module. If a new package is needed,
it should be imported before running 'go mod vendor'.