<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aroma_black</author_name>
  <author_url>https://blog.hatena.ne.jp/aroma_black/</author_url>
  <blog_title>logging.info(self)</blog_title>
  <blog_url>https://aroma-black.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>twitterのTLをふと見たら[twitter:@kk6]さんがとつぶやいていた。 個人的にはmap()関数の方が読みやすいという意見には賛成。 しかしパフォーマンスについては議論されていなかったようなので検証してみた。 とりあえずtimeit 今回はとりあえず上記にあったように整数の最小値から整数の最大値までの整数を乱数で10000個生成し、負数であったら0にして新しいリストを生成するという至って簡単な非破壊の仕様にしました。 ということで今回のパフォーマンス計測に使ったコード。 # coding:utf-8 import random import sys from timeit imp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroma-black.hatenadiary.org%2Fentry%2F20111018%2F1318946634&quot; title=&quot;Pythonのリストにおける処理パフォーマンス  - logging.info(self)&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>2011-10-18 23:03:54</published>
  <title>Pythonのリストにおける処理パフォーマンス </title>
  <type>rich</type>
  <url>https://aroma-black.hatenadiary.org/entry/20111018/1318946634</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
