ipsn / go-libtor

Self-contained Tor from Go
BSD 3-Clause "New" or "Revised" License
544 stars 46 forks source link

Anyway to speed up builds? #7

Closed ciehanski closed 5 years ago

ciehanski commented 5 years ago

It consistently takes my project that depends on go-libtor around 11 minutes to completely build and run. I'm currently using -

CGO_ENABLED=1 go build -gcflags=-m -a -tags netgo -ldflags '-w -extldflags "-static"' -o main .

to build my project. Is there anything I can do on my side to speed up build times? (different build flags, etc)

Thank you for all your work on this package!

hook-s3c commented 5 years ago

@ciehanski did you want to share the solution with the rest of us maybe? :) I'm getting 0.7% utilization