{"provider_url":"https://hatena.blog","url":"https://secret-garden.hatenablog.com/entry/2020/12/04/000348","description":"\u4e00\u4eba bugs.ruby Advent Calendar 2020 4\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 [Bug #17030] Enumerable#grep{_v} should be optimized for Regexp ary.select { |e| e.match?(reg) } \u3068\u6bd4\u8f03\u3057\u3066 ary.grep(reg) \u306e\u65b9\u304c\u9045\u3044\u306e\u3067\u6700\u9069\u5316\u3057\u3088\u3046\u3001\u3068\u3044\u3046\u5185\u5bb9\u306e\u30c1\u30b1\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002 \u3053\u308c\u306f grep \u3067\u6bd4\u8f03\u3059\u308b\u969b\u306b #=== \u3092\u4f7f\u3063\u3066\u6bd4\u8f03\u3057\u3066\u3044\u308b\u306e\u304c\u539f\u56e0\u3067\u3059\u3002 Regexp#=== \u3067\u6bd4\u8f03\u3057\u305f\u5834\u5408\u306b\u300e\u6700\u5f8c\u306b\u6bd4\u8f03\u3092\u884c\u3063\u305f\u6b63\u898f\u8868\u73fe\u30de\u30c3\u30c1\u306e\u60c5\u5831\u300f\u3068\u3057\u3066 MatchData \u3092\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002 /\u2026","title":"\u3010\u4e00\u4eba bugs.ruby Advent Calendar 2020\u3011[Bug #17030] Enumerable#grep{_v} should be optimized for Regexp\u30104\u65e5\u76ee\u3011","height":"190","author_name":"osyo-manga","image_url":null,"author_url":"https://blog.hatena.ne.jp/osyo-manga/","blog_title":"Secret Garden(Instrumental)","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F12%2F04%2F000348\" title=\"\u3010\u4e00\u4eba bugs.ruby Advent Calendar 2020\u3011[Bug #17030] Enumerable#grep{_v} should be optimized for Regexp\u30104\u65e5\u76ee\u3011 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","type":"rich","categories":["Ruby","AdventCalendar","bugs.ruby"],"published":"2020-12-04 00:03:48","blog_url":"https://secret-garden.hatenablog.com/","provider_name":"Hatena Blog"}