Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.2
-
Component/s: Compiler, Interpreter, Parser
-
Labels:None
-
Number of attachments :
Description
There appears to be a number of peephole optimizations we could add that may not add up to a lot of improvement, but could be useful under some circumstances. For example, a few I know of (Marcin may know more):
- Bare literals on a line are not executed
- Repeated retrievals of the same local variable with no intervening code are reduced to a single retrieval or not executed at all
- Repeated retrievals of an instance variable with no intervening code are reduced to a single retrieval
All of these tend to confound benchmarking, but they may also be easy for us to add to reduce (slightly) overhead in cases of badly-written code.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | JRuby 1.2 [ 14757 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |