Closed jtraglia closed 11 months ago
Instead of -O -D__BLST_PORTABLE__, I think the recommendation should be -O2 -D__BLST_PORTABLE__.
-O -D__BLST_PORTABLE__
-O2 -D__BLST_PORTABLE__
https://github.com/supranational/blst/blob/3dd0f804b1819e5d03fb22ca2e6fac105932043a/bindings/go/README.md?plain=1#L18
While blst doesn't really benefit from -O2 because it's mostly assembly, this affects the whole Golang project that uses blst. The default value is -O2 (check with go env) and changing it to -O (-O1) could cause projects to be slower than normal.
-O2
go env
-O
-O1
Also, just noticed the filenames here are a little out-dated. Should be cgo_server.c and cgo_assembly.S.
cgo_server.c
cgo_assembly.S
https://github.com/supranational/blst/blob/3dd0f804b1819e5d03fb22ca2e6fac105932043a/bindings/go/README.md?plain=1#L16
Thanks!
Instead of
-O -D__BLST_PORTABLE__
, I think the recommendation should be-O2 -D__BLST_PORTABLE__
.https://github.com/supranational/blst/blob/3dd0f804b1819e5d03fb22ca2e6fac105932043a/bindings/go/README.md?plain=1#L18
While blst doesn't really benefit from
-O2
because it's mostly assembly, this affects the whole Golang project that uses blst. The default value is-O2
(check withgo env
) and changing it to-O
(-O1
) could cause projects to be slower than normal.