mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Filter refactoring: dropped the recursion from the interpreter
This is a major change of how the filters are interpreted. If everything works how it should, it should not affect you unless you are hacking the filters themselves. Anyway, this change should make a huge improvement in the filter performance as previous benchmarks showed that our major problem lies in the recursion itself. There are also some changes in nest and protocols, related mostly to spreading const declarations throughout the whole BIRD and also to refactored dynamic attribute definitions. The need of these came up during the whole work and it is too difficult to split out these not-so-related changes.
This commit is contained in:
		@@ -308,7 +308,7 @@ static inline int
 | 
			
		||||
static_same_rte(struct static_route *or, struct static_route *nr)
 | 
			
		||||
{
 | 
			
		||||
  /* Note that i_same() requires arguments in (new, old) order */
 | 
			
		||||
  return static_same_dest(or, nr) && i_same(nr->cmds, or->cmds);
 | 
			
		||||
  return static_same_dest(or, nr) && f_same(nr->cmds, or->cmds);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user