kitech / php-go

Write PHP extension using go/golang. Zend API wrapper for go/golang.
882 stars 108 forks source link

还是新开一个issue吧,为什么编译出来的动态链接库文件那么大? #6

Closed joostshao closed 5 years ago

joostshao commented 8 years ago

3.2M -rw-rw-r-- 1 ubt ubt 3.2M 6月 5 07:14 hello.so

但是一般的原生扩展都很小,即便是swoole,才2MB不到。

1.8M -rwxr-xr-x 1 root root 1.8M 5月 25 00:00 swoole.so*

kitech commented 8 years ago

golang语言的特点,就是编译出来的文件比较大

kitech commented 8 years ago

可是那是用go build编译出来的,做不了什么优化了。再strip一下估计好点吧。

nangong92t commented 8 years ago

这并不是一个问题

septianw commented 5 years ago

Bigger file is a risk we took of using go to write PHP extension. it's been years ago, please somebody close this issue.