Jira (FACT-3184) Switch to relative_require

已查看 1 次
跳至第一个未读帖子

Josh Cooper (Jira)

未读,
2023年2月10日 13:01:022023/2/10
收件人 puppe...@googlegroups.com
Josh Cooper created an issue
 
Facter / Task FACT-3184
Switch to relative_require
Issue Type: Task Task
Assignee: Unassigned
Created: 2023/02/10 10:00 AM
Priority: Normal Normal
Reporter: Josh Cooper

Facter 4 should use relative_require not require for most cases where we're loading facter implementation code and not extensions. Using "require" is extremely slow on Windows, because of the way Ruby scans the LOAD_PATH. Effectively for each directory in the load path, Ruby determines its "realpath" which results in file I/O to open the directory and all of its ancestors, and repeating.

I noticed this when researching PA-4911

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

未读,
2023年2月16日 00:21:042023/2/16
收件人 puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper

Josh Cooper (Jira)

未读,
2023年3月2日 18:20:012023/3/2
收件人 puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Story Points: 2

Josh Cooper (Jira)

未读,
2023年3月2日 20:51:022023/3/2
收件人 puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2023-03-15

Josh Cooper (Jira)

未读,
2023年3月15日 14:30:052023/3/15
收件人 puppe...@googlegroups.com

Michael Hashizume (Jira)

未读,
2023年3月29日 13:08:052023/3/29
收件人 puppe...@googlegroups.com
Michael Hashizume updated an issue
Change By: Michael Hashizume
Sprint: Phoenix 2023-04-12

Josh Cooper (Jira)

未读,
2023年4月13日 12:39:022023/4/13
收件人 puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Enhancement
Release Notes Summary: Facter now uses "require_relative" instead of "require"

Parker Leach (Jira)

未读,
2023年4月19日 15:14:022023/4/19
收件人 puppe...@googlegroups.com
Parker Leach updated an issue
Change By: Parker Leach
Labels: docs_reviewed
回复全部
回复作者
转发
0 个新帖子