Grokking Advanced Go
Vote

0% completed

​

Capstone: Profiling and Release Build

Rob Pike's first rule of programming reads: "You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is."

The order service is a good test of that rule. A reasonable guess is that the 100 calls to Clone for a page of 100 orders use the most memory, since each one makes a separate allocation. The profile below shows that this guess is wrong about bytes.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content