<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-aska</author_name>
  <author_url>https://blog.hatena.ne.jp/s-aska/</author_url>
  <blog_title>江戸一番のジャスタウェイ職人のブログ</blog_title>
  <blog_url>https://aska.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Twitter Streaming APIはCRLF区切りでJSONを送ってくるのですが、これを都度Stringに変換しcomponentsSeparatedByStringで配列にし、最後の手前まではNSDataに戻してJSONに、最後の要素はバッファに詰めて次回処理で先頭にくっつける...というのがいかにもパフォーマンス上よろしくなさそうなので、NSDataからデータを変換せずにある区切り毎にデータを読めるライブラリを書きました。以前のコードと比較すると7倍弱高速化されました、パフォーマンスを体感することはないでしょうが消費電力が下がるという見方もできます。また、コードの可読性も高まりまし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faska.hatenablog.com%2Fentry%2F2015%2F08%2F19%2F225834&quot; title=&quot;SwiftでTwitter Streaming APIをparseするのに便利なNSData分割読み込みライブラリ - 江戸一番のジャスタウェイ職人のブログ&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>2015-08-19 22:58:34</published>
  <title>SwiftでTwitter Streaming APIをparseするのに便利なNSData分割読み込みライブラリ</title>
  <type>rich</type>
  <url>https://aska.hatenablog.com/entry/2015/08/19/225834</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
