<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katainaka0503</author_name>
  <author_url>https://blog.hatena.ne.jp/katainaka0503/</author_url>
  <blog_title>もうずっといなかぐらし</blog_title>
  <blog_url>https://katainaka0503.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、かたいなかです。 最近、NestJS製のGraphQLサーバでのSchemaからのTypescriptファイルの生成が遅い問題を調査する機会がありました。 今回の記事では、ツールの使い方等の自分への備忘録を兼ねて、どのように問題に取り組んだかを記事にして紹介します。 TL;DR 高速化するならまずは計測から。計測によるボトルネック特定が最優先。 フレームグラフが遅い処理を特定するのに超便利。Node.jsなら0xがフレームグラフ生成に便利。 @nestjs/graphql でGraphQLのスキーマからTypescriptのファイルを生成する処理が速くなった。 経緯 最近関わった案…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatainaka0503.hatenablog.com%2Fentry%2F2022%2F07%2F09%2F190340&quot; title=&quot;NestJS製GraphQLサーバの起動が遅かったので調査した話 - もうずっといなかぐらし&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/katainaka0503/20220321/20220321142205.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-09 19:03:40</published>
  <title>NestJS製GraphQLサーバの起動が遅かったので調査した話</title>
  <type>rich</type>
  <url>https://katainaka0503.hatenablog.com/entry/2022/07/09/190340</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
