タグ

2021年4月29日のブックマーク (2件)

  • Goのビルド時間の内訳について

    リンカによるリンクはGoバイナリをビルドする際に最後に行われる工程です。ビルド時間の大半はリンクに費やされることが多く、ビルド時間の律速となりうる可能性が高いです。 実際にデバッグツールでビルドにかかる時間を分析してみましょう。 例として、Genjiを使ってデータベースを作成するというビルドに大幅な時間がかかるプログラムを用意しました。 後で詳細を述べますが、このパッケージはC言語のコードをGoでラップしたzstdというパッケージに依存しています。 ビルドしてみると筆者の環境で大体3,4秒かかります。 "Hello world"のプログラムが1秒未満でできることを考えるとだいぶ時間がかかっていると言えるでしょう。このビルドで何が起きているかみていきましょう。 ビルド Goプログラムのビルドはいくつかのコマンドをつなぎ合わせたものであり、-xフラグをつけることで一連のコマンドログを出力させる

    Goのビルド時間の内訳について
    utgwkk
    utgwkk 2021/04/29
  • Behind GitHub's new authentication token formats

    EngineeringSecurityBehind GitHub’s new authentication token formatsWe're excited to share a deep dive into how our new authentication token formats are built and how these improvements are keeping your tokens more secure. As we continue to… We’re excited to share a deep dive into how our new authentication token formats are built and how these improvements are keeping your tokens more secure. As w

    Behind GitHub's new authentication token formats
    utgwkk
    utgwkk 2021/04/29