<p>Recently I decided to use Go for a pet project which I have prototyped in C++. My decision was based on many factors. As I was doing the re-write, I find myself questioning the language decision at many levels. The two areas which I didn't expect were compilation speed and executable size - it takes time to compile, and the executable is not of a size to brag about. It might be faster, but the advertised 3X (or any X for that matter) compilation times certainly looks like total BS at least for this project.</p>
<p>I can't avoid making the parallel to Chrome - it used to be fast and furious, until all features arrived. Now it's THE memory hog. I am wondering, is this something specific to my project, or others have noticed the same?</p>
<hr/>**评论:**<br/><br/>shovelpost: <pre><p>Are you using any non Go code in your project? Maybe C/C++ code with cgo?</p></pre>dlsniper: <pre><p>Use go install not go build. Also why do you care about the binary size? Is it in the realm of hundred of megabytes? Before jumping to conclusions have you read the manual or asked a Gopher? </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传