mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Add a comment with implementation notes.
This commit is contained in:
		
							parent
							
								
									a7f56bc0cc
								
							
						
					
					
						commit
						616f4f61ba
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -359,6 +359,13 @@ deque_item(dequeobject *deque, int i)
 | 
				
			||||||
	return item;
 | 
						return item;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* delitem() implemented in terms of rotate for simplicity and reasonable
 | 
				
			||||||
 | 
					   performance near the end points.  If for some reason this method becomes
 | 
				
			||||||
 | 
					   popular, it is not hard to re-implement this using direct data movement 
 | 
				
			||||||
 | 
					   (similar to code in list slice assignment) and achieve a two or threefold
 | 
				
			||||||
 | 
					   performance boost.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int
 | 
					static int
 | 
				
			||||||
deque_del_item(dequeobject *deque, int i)
 | 
					deque_del_item(dequeobject *deque, int i)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue