mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* Improve perfomance for Integer#size method [Feature #17135] * re-run ci * Let MJIT frame skip work for Integer#size Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
This commit is contained in:
		
							parent
							
								
									033e76e760
								
							
						
					
					
						commit
						3208a5df2d
					
				
				
				Notes:
				
					git
				
				2021-06-05 13:57:41 +09:00 
				
			
			Merged-By: k0kubun <takashikkbn@gmail.com>
					 5 changed files with 26 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -8,6 +8,7 @@ prelude: |
 | 
			
		|||
  def mjit_magnitude(int)  int.magnitude  end
 | 
			
		||||
  def mjit_odd?(int)       int.odd?       end
 | 
			
		||||
  def mjit_ord(int)        int.ord        end
 | 
			
		||||
  def mjit_size(int)       int.size       end
 | 
			
		||||
  def mjit_to_i(int)       int.to_i       end
 | 
			
		||||
  def mjit_to_int(int)     int.to_int     end
 | 
			
		||||
  def mjit_uminus(int)     -int           end
 | 
			
		||||
| 
						 | 
				
			
			@ -22,6 +23,7 @@ benchmark:
 | 
			
		|||
  - mjit_magnitude(-1)
 | 
			
		||||
  - mjit_odd?(1)
 | 
			
		||||
  - mjit_ord(1)
 | 
			
		||||
  - mjit_size(1)
 | 
			
		||||
  - mjit_to_i(1)
 | 
			
		||||
  - mjit_to_int(1)
 | 
			
		||||
  - mjit_uminus(1)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue