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 48F4517D914C for ; Thu, 10 Jul 2014 00:02:34 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 67D4AB5D834 for ; Thu, 10 Jul 2014 00:25:53 +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 76D7A97A832 for ; Thu, 10 Jul 2014 00:25:56 +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 uJnPrwzaFp8M for ; Thu, 10 Jul 2014 00:25:56 +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 3B5C597A82C for ; Thu, 10 Jul 2014 00:25:56 +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 C373195243A for ; Thu, 10 Jul 2014 00:25:52 +0900 (JST) Received: from [221.186.184.76] (unknown [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id C8F6D120443; Thu, 10 Jul 2014 00:25:38 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 9B42C120433 for ; Thu, 10 Jul 2014 00:25:35 +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=UMypcoBwuvcNgM+ZKVQM5gDP52M=; b=jVCfFfumWMLelsWRGq wCG+/sgXGqM9ma+hB8lMLqyRsKNg1LqMJtE89xnAxYLdeNdrPMhBpSEonZAw0a+j IXZCDYQyIDN2bzwfDA3AfZAJ9MEtlBVTr101dWacVZ5K3hbFK2qoWsyI8iqpRAI/ hKhZlohTyQUJjX2380O3upBvI= Received: by mf164.sendgrid.net with SMTP id mf164.12496.53BD5EEB3B 2014-07-09 15:25:31.992854552 +0000 UTC Received: from herokuapp.com (ec2-54-197-40-71.compute-1.amazonaws.com [54.197.40.71]) by ismtpd-012.iad1.sendgrid.net (SG) with ESMTP id 1471bba5f36.690d.5e2505 for ; Wed, 09 Jul 2014 15:25:04 +0000 (GMT) Date: Wed, 09 Jul 2014 15:25:04 +0000 From: tenderlove@ruby-lang.org 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: 37704 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10015 X-Redmine-Issue-Author: tenderlovemaking X-Redmine-Sender: tenderlovemaking 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS52t+Fqdq7UGeafiooucm8BCiMowvQu92WQJ/M5wQXNhhz2OWJgf0/TsuSMIm9enl9o7OHN/XBG+0ZiGEjxFotJ/+vR/ldDNMAp8BS0/8oXdtQfHA0KBH2g2X+3MJkqyOY= X-ML-Name: ruby-core X-Mail-Count: 63606 Subject: [ruby-core:63606] [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 Aaron Patterson. @nobu this change causes a significant increase in Rails boot time on my system. My application pays a 120ms price for this change. @hsbt will pay 520ms: http://twitter.com/hsbt/status/486378979138367488 Is there a way we can keep the performance on case-insensitive file systems? If there really is no work-around, then we need to make some changes in RubyGems, bundler, minitest, and Rails before trunk is released because many people will complain about slow boot times. :( ---------------------------------------- Bug #10015: Performance regression in Dir#[] https://bugs.ruby-lang.org/issues/10015#change-47662 * Author: Aaron Patterson * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * 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/