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 4D9B919600D1 for ; Sat, 4 Jul 2015 14:07:41 +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 BC4D9B5D887 for ; Sat, 4 Jul 2015 14:33:48 +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 66BD297A82C for ; Sat, 4 Jul 2015 14:33:50 +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 zERIcDhNHIFN for ; Sat, 4 Jul 2015 14:33:50 +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 2AD0197A820 for ; Sat, 4 Jul 2015 14:33:50 +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 79ACD952439 for ; Sat, 4 Jul 2015 14:33:48 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1BB1412049B; Sat, 4 Jul 2015 14:33:47 +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 9B991120451 for ; Sat, 4 Jul 2015 14:33:43 +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=QjKOsX90kXyEfVZSEm6NqUS+kNU=; b=M2D4sgfn+iI4wLGuq4 0YT0Q1EK+wKJuIrjpL7CJkG2F4PYw1y961VCearVM5qp1nlGAhjCd+a+1sU3pH+K uBFSNfzkA3q/xoYoIdOyDsiUTbCT//0fu6TSFikwtYja6QgNDqMEpWRD7uXkTC/9 odUtGaHzEE8LyAyLuA3e+zMGw= Received: by filter0417p1mdw1.sendgrid.net with SMTP id filter0417p1mdw1.2182.5597702C7 2015-07-04 05:33:37.571727062 +0000 UTC Received: from ismtpd-009.iad1.sendgrid.net ([UNAVAILABLE]. [10.42.2.121]) by 10.42.243.103:2500 (trex/5.2.14); Sat, 04 Jul 2015 05:33:39 GMT Received: from herokuapp.com (ec2-54-161-120-145.compute-1.amazonaws.com [54.161.120.145]) by ismtpd-009 (SG) with ESMTP id 14e578e3e0d.4829.777f2d for ; Sat, 04 Jul 2015 05:33:36 +0000 (UTC) Date: Sat, 04 Jul 2015 05:33:36 +0000 From: normalperson@yhbt.net 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: 44472 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11331 X-Redmine-Issue-Author: normalperson X-Redmine-Sender: normalperson X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4+caFyPegHvn4irUpPdIdnL7jGiALJVEEuC9 H+I4RvcO/ulMD0ny/ffC9dkGHKTI0TcwszPFU9GO0w0s8Fa5j/dju3tUPipraRJ0B2EBGja/2tUQHC McPb8hOigzS7EuEYmSatka+026K3ze0yt+rS X-ML-Name: ruby-core X-Mail-Count: 69871 Subject: [ruby-core:69871] [Ruby trunk - Feature #11331] [Open] [PATCH] load.c: use fstring for loaded features and expanded load path 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 #11331 has been reported by Eric Wong. ---------------------------------------- Feature #11331: [PATCH] load.c: use fstring for loaded features and expanded load path https://bugs.ruby-lang.org/issues/11331 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Loaded features is an obvious candidate for fstring since feature paths of Ruby sources are included in iseq locations, and iseq locations are in the fstring table anyways. Deduplicating expanded load path can reuse old objects, since repeated expansions may get reused before old expanded paths are GC-ed away. Only lightly-verified since I don't have a lot of code, but seems obvious enough. Folks with bigger codebases are encouraged to double-check results. ---Files-------------------------------- 0001-load.c-use-fstring-for-loaded-features-and-expanded-.patch (1.73 KB) -- https://bugs.ruby-lang.org/