Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Golangアプリを小さくしてみよう
Search
aozora0000
February 24, 2018
Programming
0
150
Golangアプリを小さくしてみよう
第三回umeda.goでLT発表出来なかったやーつ
aozora0000
February 24, 2018
Tweet
Share
More Decks by aozora0000
See All by aozora0000
服装コーディネートサービス.pdf
aozora0000
0
47
教えるという事
aozora0000
0
32
Other Decks in Programming
See All in Programming
Package Management Learnings from Homebrew
mikemcquaid
0
230
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
ぼくの開発環境2026
yuzneri
0
240
Apache Iceberg V3 and migration to V3
tomtanaka
0
170
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
620
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
800
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
150
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Evolving SEO for Evolving Search Engines
ryanjones
0
130
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Thoughts on Productivity
jonyablonski
74
5k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
How GitHub (no longer) Works
holman
316
140k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
53
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
The Spectacular Lies of Maps
axbom
PRO
1
530
Transcript
GolangΞϓϦΛখ͘͞ ͯ͠ΈΑ͏ ୈࡾճumeda.goͰLTൃදग़དྷͳ͔ͬͨʔͭ
୭Ͱ͔͢ʁ • PHPͷํ͔Βདྷ·ͨ͠ • TwitterͰ@aozora0000ͱͯ͠׆ಈ • ϓϩμΫγϣϯͰ΄΅goະಋೖͰ͢
GoͰͨ·ʹݴΘΕΔͷ͕ όΠφϦαΠζ͕େ͖͍
ϏϧυΦϓγϣϯແ͠ 100%
খͯ͘͞͠ΈΑ͏
ϏϧυΦϓγϣϯͰগ͠খ͘͞ ͳͬͯͳ͍ $ go build -ldflags '-w -s' ./
όΠφϦͷσόοά༻σʔλΛআ 86% $ strip [filename]
όΠφϦΛѹॖ 28%ʂʂʂ $ gzexe [filename] • gzipύοέʔδʹೖ͍ͬͯ·͢ • ࣮ߦ࣌ࣗݾల։ͯ͠όΠφϦ࣮ߦ͢ΔͷͰΦʔόʔϔου༗ Γ
UPXͬͯͷ͋ΔΒ͍͠ 32% $ upx [filename] • https://github.com/upx/upx • ࣮ߦ࣌ࣗݾల։ͯ͠όΠφϦ࣮ߦ͢ΔͷͰΦʔόʔϔου༗ Γ
DockerͰେ׆༂ʂ ͏େ͖͍ͳΜͯݴΘͤͳ͍
͋Γ͕ͱ͏͍͟͝·ͨ͠