<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>以前こういうことをtweetしたのですが caes object 何か extends sealedの親を大量に作るScala 2形式より、Scala 3のenumの方が、それぞれ別の型にならない(classファイル作らない)ので、生成されるjar sizeが大抵(?)小さくなるというメリットがあるぞぃ— Kenji Yoshida (@xuwei_k) November 23, 2024 よく考えたら、これってcompile速度にも影響するのでは？？？と思って調べてみた結果を書いていきます</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F2025%2F07%2F30%2F133155&quot; title=&quot;Scala 3でsealedからenumにするとcompile速度何倍も速くなるぞ - xuwei-k&amp;#39;s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-30 13:31:55</published>
  <title>Scala 3でsealedからenumにするとcompile速度何倍も速くなるぞ</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/2025/07/30/133155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
