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.

Allocation Efficiency in High-Performance Go Services

106 pointsby mrbbkover 7 years ago

3 comments

kenhwangover 7 years ago
When you need to start worrying about memory allocation control, garbage collection latency, pointers, byte padding, and CPU instructions per operation, Go might be not be the best tool for the job anymore. Seems like Rust might be a better choice here? Instead of reverse engineering what the compiler might do, then structuring the code in subtle ways to get the compiler to actually do what you intend to do, why not pick a language that lets you command the compiler do to what you want?
评论 #15290651 未加载
评论 #15291085 未加载
评论 #15291518 未加载
krakensdenover 7 years ago
The interface problem seems like something the compiler team should fix or mitigate. I worry this post is going to cause a lot of premature restrictionism.
评论 #15290705 未加载
robblesover 7 years ago
I noticed there&#x27;s a go:noescape compiler directive that seems to provide an escape hatch for a lot of this unexpected compiler behaviour:<p><a href="https:&#x2F;&#x2F;golang.org&#x2F;cmd&#x2F;compile&#x2F;#hdr-Compiler_Directives" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;cmd&#x2F;compile&#x2F;#hdr-Compiler_Directives</a><p>Does that actually work?
评论 #15297153 未加载