Submit Search
Upload
Go isucon
•
Download as PPTX, PDF
•
2 likes
•
833 views
Daijirou Yamada
Follow
Goで何か作った話をしたい(願望)
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 22
Download now
Recommended
Java one 2013 sf 報告会lt
Java one 2013 sf 報告会lt
torutk
組織にテストを書く文化を根付かせる戦略と戦術
組織にテストを書く文化を根付かせる戦略と戦術
Takuto Wada
Output Driven 20170721
Output Driven 20170721
Shintaro Ikeda
簡単!Groovy入門
簡単!Groovy入門
Lee Choong Geun
俺とInstant team building
俺とInstant team building
Masayuki KaToH
Ha4goもくもく報告2016年11月分
Ha4goもくもく報告2016年11月分
Masayuki KaToH
Goをえらんだ理由
Goをえらんだ理由
Tatsumi Naganuma
言語の検証と導入
言語の検証と導入
weddingpark
Recommended
Java one 2013 sf 報告会lt
Java one 2013 sf 報告会lt
torutk
組織にテストを書く文化を根付かせる戦略と戦術
組織にテストを書く文化を根付かせる戦略と戦術
Takuto Wada
Output Driven 20170721
Output Driven 20170721
Shintaro Ikeda
簡単!Groovy入門
簡単!Groovy入門
Lee Choong Geun
俺とInstant team building
俺とInstant team building
Masayuki KaToH
Ha4goもくもく報告2016年11月分
Ha4goもくもく報告2016年11月分
Masayuki KaToH
Goをえらんだ理由
Goをえらんだ理由
Tatsumi Naganuma
言語の検証と導入
言語の検証と導入
weddingpark
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Go isucon
1.
GOで何か作った話を したい(願望)
2.
ISUCONに向けて GOでなにか作ってみた
3.
ん?
4.
ISUCON?
5.
さっき聞いたぞ? 🤔
6.
先程発表された(No.10)さんと同じチームです。
7.
自己紹介 山田大二朗 YAMADA Daijiro MAIL:
yamad@daiji.ro Site: yamada.daiji.ro SNS: @dorako321 某社のエンジニア Java, PHP, JavaScript, Golang, Spring, React, Play! Framework 2 Splatoon, factorio
8.
ISUCONとは いい感じにスピードアップコンテストの略 1チーム最大3名で参加 与えられたサーバに入っているサービスを制限時 間内にどれだけ高速化するかを競う 言語はいくつか選択できるのでどうせならとGo を選択(すべての始まり)
9.
ISUCONに参加した経緯 社内ISUCONでそこそこいい成績だったから調子に乗った 社内ISUCONで良いチームメンバに出会えた
10.
結果 敗北 そこそこ上の方には入ってたが決勝までは行けず・・。
11.
感想戦(反省会) 社内ISUCONではPHPだったが、ISUCONではGoで挑戦した その時はGopher道場入門前だったので、 かなりなんとなくで書いてた→入門のきっかけ 悔しかったので決勝へ行ったチームのブログを読み漁った
12.
決勝へ行けるチームの戦略 そもそもISUCONで提供されるアプリケーションはわざとイケてない作りに なっている。 ボトルネックをいかに探して対処していくかが鍵(pprof, mysqlprof) 秘伝のタレ(nginx.conf)
使いそうな処理を予め用意しておくとか
13.
次の開催までに何かしら用意してみる せっかくなのでGopher道場で学んだことを使ってみる
14.
過去にあった課題を解決するもの を作ってみる MySQLに画像データ(バイナリ)を保存しているイケてない 設計がある。 DBからバイナリを取ってきて毎回画像を生成している 毎回取ってくるのに時間がかかるしキャッシュも効かない
15.
16.
頻度はどうか DBにバイナリデータが入っている例は過去に何度か登場し ている 改修にも時間がかかるが、改善する度合いも大きいため多 くのチームが実施している(感想ブログなど参照)
17.
とりあえずコマンドにしてみた https://github.com/dorako321/isu- image-extractor
18.
こまんど $ extimg -h=localhost
–p=3306 u=isucon d=isucon tb=image uc=id dc=data
19.
汎用的に使えるか いいえ 例えば対象のテーブルのPKが複合キーだった場合使 えない MySQLのみで試しているが、PostgreSQLだった場 合使えない →あまり都合よく行くとは思ってないので 動作しない可能性があるのは大前提としておいて 本番ではおそらくソースを少し書き換えることを覚悟
20.
その他 この方法でデータを抽出したあとに、DBの読 み書きに関する処理を修正する必要がある。
21.
作ってみて Gopher道場に参加すると、スラスラ書ける!! (当社比
22.
おわり
Download now