<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ku-ma-me</author_name>
  <author_url>https://blog.hatena.ne.jp/ku-ma-me/</author_url>
  <blog_title>まめめも</blog_title>
  <blog_url>https://mametter.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>VM を Scala で書いてて得た知見。(再検証せずに書いてますので間違ってたら教えてください) for (i &lt;- 0 until 100) { ... } より var i = 0 while (i &lt; 100) { ...; i += 1 } の方がとっても速い。 for にすると for の中身が (Java レベルの) 別クラスになるため、かなり遅いみたい。 object Main { val v1 = ... def foo { foo(i &lt;- 0 until 100) { v1 を使う } } } みたいなの書くと、v1 の参照が別クラスのメソッド呼び出しになるようで、そのせ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20090630%2Fp2&quot; title=&quot; 速さのためなら for より while - まめめも&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>2009-06-30 00:00:01</published>
  <title> 速さのためなら for より while</title>
  <type>rich</type>
  <url>https://mametter.hatenablog.com/entry/20090630/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
