<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pyhaya</author_name>
  <author_url>https://blog.hatena.ne.jp/pyhaya/</author_url>
  <blog_title>pyhaya’s diary</blog_title>
  <blog_url>https://pyhaya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Rust を使って、テキストファイルを開いて中のデータを読み出すということをやってみます。Rust では読み込み方法がいくつもあるのでそれの比較と、普段私が使っている Python の numpy.loadtxt との比較も行っていきます。 環境 読み込むデータ Rust でテキストファイルを読み込む read_to_string を使う方法 BufReader を使う方法 split_whitespace を使う方法 文字列から浮動小数点数への変換にlexical を使う （おまけ） numpy.loadtxt との比較 まとめ 環境 Rust 1.39.0-nightly (nightly…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyhaya.hatenablog.com%2Fentry%2F2019%2F09%2F24%2F000115&quot; title=&quot;(速度比較) Rust でテキストファイルからデータを読み出す - pyhaya’s diary&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>https://images-fe.ssl-images-amazon.com/images/I/51e5B1Zx%2ByL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-24 00:01:15</published>
  <title>(速度比較) Rust でテキストファイルからデータを読み出す</title>
  <type>rich</type>
  <url>https://pyhaya.hatenablog.com/entry/2019/09/24/000115</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
