mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	insns.def (opt_succ): remove Time#succ optimization
Time#succ is a deprecated method and not frequently used, so this wastes icache in vm_exec_core. Using bloat-o-meter in the Linux kernel source to shows a small reduction on my x86-64 system: $ ~/linux/scripts/bloat-o-meter ruby.before ruby.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-57 (-57) function old new delta vm_exec_core 24216 24159 -57 [Feature #10501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									97c2eac2df
								
							
						
					
					
						commit
						6c0a375c58
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Fri Nov 14 06:54:06 2014  Eric Wong  <e@80x24.org>
 | 
			
		||||
 | 
			
		||||
	* insns.def (opt_succ): remove Time#succ optimization
 | 
			
		||||
	  [Feature #10501]
 | 
			
		||||
 | 
			
		||||
Fri Nov 14 05:29:46 2014  Koichi Sasada  <ko1@atdot.net>
 | 
			
		||||
 | 
			
		||||
	* gc.c: refactoring.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2105,10 +2105,6 @@ opt_succ
 | 
			
		|||
	    BASIC_OP_UNREDEFINED_P(BOP_SUCC, STRING_REDEFINED_OP_FLAG)) {
 | 
			
		||||
	    val = rb_str_succ(recv);
 | 
			
		||||
	}
 | 
			
		||||
	else if (RBASIC_CLASS(recv) == rb_cTime &&
 | 
			
		||||
		 BASIC_OP_UNREDEFINED_P(BOP_SUCC, TIME_REDEFINED_OP_FLAG)) {
 | 
			
		||||
	    val = rb_time_succ(recv);
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	  {
 | 
			
		||||
	    goto INSN_LABEL(normal_dispatch);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue