mvdan / goreduce

Reduce Go programs
BSD 3-Clause "New" or "Revised" License
216 stars 7 forks source link

Test whether using cmd/compile and cmd/link directly is faster #14

Closed mvdan closed 7 years ago

mvdan commented 7 years ago

We use go build right now. We should test if using the compiler and linker directly noticeably speeds up the compiler roundtrip.

mvdan commented 7 years ago

Actually, their use is not as simple as it sounds - we have to take care of -L and -I, for example. And not even sure if the speedup would be noticeable - on a simple program importing a non-trivial non-std package, go build clocks in at ~170ms, while compile is ~30ms and link is ~140ms.

Not going to consider this for now.