TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Micro-optimizing Go Code

1 pointsby beliuover 6 years ago

1 comment

jnordwickover 6 years ago
Can you even get native asm out of golang or write it?<p>I was under the impression you could only get and write that Plan9 stuff that still needs to be translated.<p>In high performance Java world it is pretty common to bust out jmh (Java microbenchmarking harness) to see the actual assembly that hotspot produces in its various passes. It is an amazing tool.<p>By far the most common way to optimize functions in Java at this level is to run it through jmh and tinker with the Java code until hotspot produces what you want it to. Does that work in Go too as well as it does in Java?