<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>autotaker</author_name>
  <author_url>https://blog.hatena.ne.jp/autotaker/</author_url>
  <blog_title>autotaker's blog</blog_title>
  <blog_url>https://autotaker.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Data.List.sortがあまりに遅くてつらいので、vectorを使って書いてチューニングしたら約４倍速くなりましたという話をします。その過程でvectorのmonadic indexingとは何かという話をします。仕様としてData.Listと互換性を持たせるため、次のようなインターフェースにしました。 {-# INLINE sort #-} sort :: Ord a =&gt; [a] -&gt; [a] sort = sortBy compare sortBy :: (a -&gt; a -&gt; Ordering) -&gt; [a] -&gt; [a] sortBy = ... 次に実装を見てきます。 impo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fautotaker.hatenablog.com%2Fentry%2F2016%2F04%2F04%2F140744&quot; title=&quot;vectorを使ったData.List.sortより４倍速いsortアルゴリズムの実装 - autotaker&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>2016-04-04 14:07:44</published>
  <title>vectorを使ったData.List.sortより４倍速いsortアルゴリズムの実装</title>
  <type>rich</type>
  <url>https://autotaker.hatenablog.com/entry/2016/04/04/140744</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
