Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Coremunity
-
Coremunity Kanban
-
Needs Assessment
-
Bug Fix
-
Backported ruby patch to Pathname.absolute? to reduce memory usage
-
Needs Assessment
Description
Pathname.absolute?('/a/b/c/etc') makes recursively smaller copies of the path, e.g. '/a/b/c', '/a/b', '/a', '', which leads to excessive numbers of temporary strings. Pathname was fixed upstream and that was included in ruby 3.0, but it would be good to apply the same to our 2.x builds:
See https://github.com/ruby/ruby/commit/39312cf4d6c2ab3f07d688ad1a467c8f84b58db0
Attachments
Issue Links
- relates to
-
PUP-6585 Remove internal usage of Puppet::Util.absolute_path?(path) / replace with Pathname.new(path)
-
- Closed
-