syncthing/cmd/stdiscosrv
Jakob Borg 7fa699e159
build, lib/build: Build faster (#6538)
This changes the build script to build all the things in one go
invocation, instead of one invocation per cmd. This is a lot faster
because it means more things get compiled concurrently. It's especially
a lot faster when things *don't* need to be rebuilt, possibly because it
only needs to build the dependency map and such once instead of once per
binary.

In order for this to work we need to be able to pass the same ldflags to
all the binaries. This means we can't set the program name with an
ldflag.

When it needs to rebuild everything (go clean -cache):

    ( ./old-build -gocmd go1.14.2 build all 2> /dev/null; )  65.82s user 11.28s system 574% cpu 13.409 total
    ( ./new-build -gocmd go1.14.2 build all 2> /dev/null; )  63.26s user 7.12s system 1220% cpu 5.766 total

On a subsequent run (nothing to build, just link the binaries):

    ( ./old-build -gocmd go1.14.2 build all 2> /dev/null; )  26.58s user 7.53s system 582% cpu 5.853 total
    ( ./new-build -gocmd go1.14.2 build all 2> /dev/null; )  18.66s user 2.45s system 1090% cpu 1.935 total
2020-04-16 10:09:33 +02:00
..
etc etc: Fix misleading comment in discosrv options file (#6258) 2020-01-06 22:43:41 +00:00
scripts build, etc: Add systemd units and ufw rules for relay and discovery (fixes #5115) (#5350) 2019-08-08 18:04:52 +02:00
apisrv_test.go cmd/stdiscosrv: Be more picky about allowed addresses (fixes #5151) (#5153) 2018-08-30 18:06:35 +01:00
apisrv.go cmd/stdiscosrv: Sort addresses before replication (fixes #6093) (#6094) 2019-10-18 10:50:19 +02:00
database_test.go all: Fix typos (#4772) 2018-02-24 08:51:29 +01:00
database.go cmd/stdiscosrv: Sort addresses before replication (fixes #6093) (#6094) 2019-10-18 10:50:19 +02:00
database.pb.go all: Upgrade github.com/gogo/protobuf and regenerate (fixes #6085) 2019-10-18 09:53:59 +02:00
database.proto all: Update protobuf package 1.0.0 -> 1.2.0 (#5452) 2019-01-14 11:53:36 +01:00
main.go build, lib/build: Build faster (#6538) 2020-04-16 10:09:33 +02:00
README.md build: Packaging for stdiscosrv 2018-01-16 20:46:48 +01:00
replication.go cmd/stdiscosrv: Add replication heartbeats (fixes #5117) (#5120) 2018-08-15 16:52:20 +02:00
stats.go cmd: Update prometheus_client (fixes #5280) (#5282) 2018-10-21 16:11:26 +01:00

stdiscosrv

This is the global discovery server for the syncthing project.

Usage

https://docs.syncthing.net/users/stdiscosrv.html