PacketFence - BTS - PacketFence
View Issue Details
0000910PacketFenceperformancepublic2010-02-09 15:072011-01-26 15:38
obilodeau 
obilodeau 
normalmajoralways
closedfixed 
1.8.7 
1.9.01.9.0 
17b374bae1c3fad156b6a3006369c0ca4bc9a39c
0000910: inefficient vlan_determine_for_node() and custom_getCorrectVlan() instantiate SwitchFactory unnecessarily
Each time we create a new switchFactory the conf/switches.conf file is parsed and it's avoidable work. Especially during high load periods or when we will use these methods for each radius request.

Fix that by passing around the higher level switch object instead of reconstructing the object from the factory each time.
No tags attached.
Issue History
2010-02-09 15:07obilodeauNew Issue
2010-02-09 15:07obilodeauStatusnew => assigned
2010-02-09 15:07obilodeauAssigned To => obilodeau
2010-02-09 16:03obilodeauNote Added: 0001468
2010-02-09 16:03obilodeauStatusassigned => resolved
2010-02-09 16:03obilodeauFixed in Version => 1.8.8
2010-02-09 16:03obilodeauResolutionopen => fixed
2010-02-09 16:03obilodeaumtn revision => 17b374bae1c3fad156b6a3006369c0ca4bc9a39c
2010-02-10 11:23obilodeauCategory1.8.7 => performance
2010-04-29 13:38obilodeauFixed in Version1.8.8 => 1.9.0
2010-04-29 13:39obilodeauTarget Version1.8.8 => 1.9.0
2011-01-26 15:38obilodeauStatusresolved => closed

Notes
(0001468)
obilodeau   
2010-02-09 16:03   
Fixed in monotone branch 1.8 rev no: 17b374bae1c3fad156b6a3006369c0ca4bc9a39c
will be propagated to 1.9