mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Let execution context local storage be an ID table
This commit is contained in:
		
							parent
							
								
									b53d8230f1
								
							
						
					
					
						commit
						40c57ad4a1
					
				
				
				Notes:
				
					git
				
				2020-01-11 10:41:09 +09:00 
				
			
			
			
		
		
					 6 changed files with 42 additions and 22 deletions
				
			
		
							
								
								
									
										8
									
								
								benchmark/fiber_locals.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								benchmark/fiber_locals.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
prelude: |
 | 
			
		||||
  th = Thread.current
 | 
			
		||||
  th[:key] = :val
 | 
			
		||||
benchmark:
 | 
			
		||||
  key?: th.key?(:key)
 | 
			
		||||
  []: th[:key]
 | 
			
		||||
  keys: th.keys
 | 
			
		||||
loop_count: 1_000_000
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue