[TOPOPROCES-78] QName/QNameModule constants should be intern()ed Created: 14/Jun/16 Updated: 17/Jun/16 Resolved: 17/Jun/16 |
|
| Status: | Resolved |
| Project: | topoprocessing |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Dileep Ranganathan |
| 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: | 6065 |
| Priority: | Normal |
| Description |
|
The project contains a lot of constant QNames (like org.opendaylight.topoprocessing.impl.util.TopologyQNames). All of these should be interned (like in ). This will cause constant QNames to be shard with SchemaContext instances and other users, lowering memory requirements and increasing QName.equals() performance. |
| Comments |
| Comment by Robert Varga [ 14/Jun/16 ] |
|
https://git.opendaylight.org/gerrit/40330 is an example. |
| Comment by Robert Varga [ 15/Jun/16 ] |
| Comment by Andrej Záň [ 17/Jun/16 ] |