<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fatalerror</author_name>
  <author_url>https://blog.hatena.ne.jp/fatalerror/</author_url>
  <blog_title>NF</blog_title>
  <blog_url>https://fatalerror.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>少し遅れましたが2回目です。glibcのstrlen()は早くなる工夫をしているという話。 strlen()は遅いからあんま使うなみたいなのは、また別の話で。 概要 glibc strlen コードリーディング - JUNのブログ この方のブログに全部詳しく書いてあるのですが、自分理解用に書いてみます。なお説明を簡単にするため32bit環境（1word＝32bit）の前提で書きます。 glibc版のstrlen()は３手順で構成されていて、 １．ロングワード境界まで1文字づつ進める ２．ロングワード単位でnullが含まれてないか調べる ３．nullが含まれていたら1文字づつ調べる となっていま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffatalerror.hatenablog.com%2Fentry%2F2021%2F09%2F12%2F141627&quot; title=&quot;2回目：strlenはやい - NF&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>2021-09-12 14:16:27</published>
  <title>2回目：strlenはやい</title>
  <type>rich</type>
  <url>https://fatalerror.hatenablog.com/entry/2021/09/12/141627</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
