[OPNFLWPLUG-809] Optimize port number lookups Created: 27/Oct/16 Updated: 27/Sep/21 Resolved: 03/Nov/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tomas Slusny | Assignee: | Jozef Bacigal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 7046 |
| Description |
|
Every call to OpenflowPortsUtil#getPortLogicalName and OpenflowPortsUtil#isPortReserved is calling ImmutableBiMap#inverse method, what inverses keys and values of BiMap, what is very costly operation. Cache inversed version of these BiMaps, to improve performance of port number lookups. |
| Comments |
| Comment by Tomas Slusny [ 27/Oct/16 ] |