From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id EA7B617DEC6F for ; Mon, 30 Mar 2015 18:51:45 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 82972B5D8B8 for ; Mon, 30 Mar 2015 19:00:31 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id B429397A832 for ; Mon, 30 Mar 2015 19:00:33 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wa1s7XwhB3Gt for ; Mon, 30 Mar 2015 19:00:33 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 47B0497A83A for ; Mon, 30 Mar 2015 19:00:33 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 0528095243E for ; Mon, 30 Mar 2015 19:00:30 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8C974120503; Mon, 30 Mar 2015 19:00:28 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id EB9D0120465 for ; Mon, 30 Mar 2015 19:00:24 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=ON9ki0kbDBXJft34JM9EqKwjOyw=; b=X+Mhu/VcjSBrY0fDn3 L0/k3kAw6vO3r03jbJORL2Wtm0GwsvD7/TqLKb13QO/8TCpbJ6Dj1MzFaTfinYPe dAWgyK2H8F4zw/NDhuTt0OI5pz3b0jnYNNQ9W9nYQYOp4+rrVntEBN8tlCFN3Emr ayaNcSaBi9qPqCJylt82+F1Lw= Received: by filter0132p1mdw1.sendgrid.net with SMTP id filter0132p1mdw1.7387.55191EB01D 2015-03-30 10:00:16.649652466 +0000 UTC Received: from herokuapp.com (ec2-54-198-138-77.compute-1.amazonaws.com [54.198.138.77]) by ismtpd-002 (SG) with ESMTP id 14c6a1fe118.5be0.3f37d8 Mon, 30 Mar 2015 10:00:16 +0000 (UTC) Date: Mon, 30 Mar 2015 10:00:14 +0000 From: adrien.siami@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 43089 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10015 X-Redmine-Issue-Author: tenderlovemaking X-Redmine-Sender: Intrepidd X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: OOF Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6sEowdsaOk1gLDETHMiYrJbXoGu/dt5vtXRe BTk3MDRTLV4A/CyNLZGooua0CXcTa0Rp+s+VkOWO9nn0+jgQRGbsuyGI2ejtTbE0yRKh7EDllbktHy Pbi79Wcp8Kp1dPCLaqQf7GNU8lCmsBeTs4uS X-ML-Name: ruby-core X-Mail-Count: 68684 Subject: [ruby-core:68684] [Ruby trunk - Bug #10015] Performance regression in Dir#[] X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #10015 has been updated by Adrien Siami. Mac OS X Yosemite with the standard filesystem, I believe HFS+ Insensitive ---------------------------------------- Bug #10015: Performance regression in Dir#[] https://bugs.ruby-lang.org/issues/10015#change-51972 * Author: Aaron Patterson * Status: Feedback * Priority: Normal * Assignee: * ruby -v: ruby 2.2.0dev (2014-02-04 trunk 44802) [x86_64-darwin13.0] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- r44802 seems to have introduced a performance regression in Dir#[]. Here is the test program: ~~~ruby require 'benchmark' puts Benchmark.realtime { glob = "minitest/*_plugin.rb{,.rb,.bundle}" $LOAD_PATH.map { |load_path| Dir["#{File.expand_path glob, load_path}"] }.flatten.select { |file| File.file? file.untaint } } ~~~ Here is the test time for me: ~~~ $ ruby -v test.rb ruby 2.2.0dev (2014-02-04 trunk 44801) [x86_64-darwin13.0] 0.000341 $ ruby -v test.rb ruby 2.2.0dev (2014-02-04 trunk 44802) [x86_64-darwin13.0] 0.009333 ~~~ r44801 seems much faster than r44802. -- https://bugs.ruby-lang.org/