Project

General

Profile

Actions

Feature #13295

closed

[PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)

Added by normalperson (Eric Wong) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79971]

Description

The same optimization used for "literal string".freeze
can easily apply to uminus without introducing any
compatibility problems.

I can't think of any problems this would introduce,
but I'll wait a few days for feedback before committing.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0