[#85940] [Ruby trunk Bug#14578] Forking a child process inside of a mutex crashes the ruby interpreter — ben.govero@...
Issue #14578 has been reported by bengovero (Ben Govero).
3 messages
2018/03/05
[#86205] [Ruby trunk Feature#14618] Add display width method to String for CLI — aycabta@...
SXNzdWUgIzE0NjE4IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGF5Y2FidGEgKGF5Y2FidGEgLikuCgot
3 messages
2018/03/19
[#86366] Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955 — Eric Wong <normalperson@...>
[email protected] wrote:
3 messages
2018/03/28
[ruby-core:86416] [Ruby trunk Feature#14624] #{nil} allocates a fresh empty string each time
From:
nobu@...
Date:
2018-03-31 15:43:29 UTC
List:
ruby-core #86416
Issue #14624 has been updated by nobu (Nobuyoshi Nakada).
https://github.com/nobu/ruby/tree/feature/opt_to_s
----------------------------------------
Feature #14624: #{nil} allocates a fresh empty string each time
https://bugs.ruby-lang.org/issues/14624#change-71351
* Author: bumblingbear (Dillon Welch)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
This causes a bunch of unnecessary string allocations in the following scenario: `"#{'rails' unless boolean_condition} is great"`. Each time this line is called when `boolean_condition` is true, it evaluates to `nil` and when `nil` is interpolated into a string it allocates an empty string. Ideally, the behavior of `nil.to_s` would reference a frozen empty string that wouldn't need to be reallocated each time.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>