Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the need to create a pf::SwitchFactory object to create pf::Switch objects #401

Merged

Conversation

jrouzierinverse
Copy link
Member

Description

Since the pf::SwitchFactory->instantiate method does not use any state. It
was just extra overhead to have to create a pf::SwitchFactory object to
instantiate switch objects.
Calling pf::SwitchFactory->instantiate removes the overhead of creating a pf::SwitchFactory object

Impacts

Any module that uses the pf::SwitchFactory

NEWS file entries

Enhancements
++++++++++++

  • Optimize the create of switch object

Delete branch after merge

NO

Since the pf::SwitchFactory->instantiate method does not use any state.
It was just extra overhead to have to create a pf::SwitchFactory object to instantiate switch objects
@jrouzierinverse jrouzierinverse added this to the packetfence-5 milestone Mar 3, 2015
@jrouzierinverse
Copy link
Member Author

Please review

@julsemaan
Copy link
Collaborator

Looks good to me.
Has this been tested ?

@jrouzierinverse
Copy link
Member Author

It passed the smoke.t

@jrouzierinverse
Copy link
Member Author

Well before it was broken

@julsemaan
Copy link
Collaborator

I'm more talking about basic testing like instanciating a switch, making sure all services start,...

@jrouzierinverse
Copy link
Member Author

Yes those test have been done.

@jrouzierinverse
Copy link
Member Author

t/SwitchFactory.t
t/SNMP.t
t/floatingdevice.t
t/network-devices/cisco.t
t/network-devices/threecom.t
t/services.t
t/vlan.t

julsemaan added a commit that referenced this pull request Mar 26, 2015
…y-object

Remove the need to create a pf::SwitchFactory object to create pf::Switch objects
@julsemaan julsemaan merged commit d110354 into inverse-inc:devel Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants