Reduce dataspace/anchor lookups in CpsDataService 27/133627/6
authordanielhanrahan <daniel.hanrahan@est.tech>
Tue, 7 Mar 2023 20:53:04 +0000 (20:53 +0000)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Tue, 14 Mar 2023 16:42:54 +0000 (16:42 +0000)
commit530d4d41f3e3deb2b6bf36e0345bdc9153c0611b
tree1917f8e4a173b4202cef0a41d47b4a32cdded68f
parent26439b875861fe5e45f2eb78869bd121dfd7236b
Reduce dataspace/anchor lookups in CpsDataService

- Use Anchor object instead of names in processDataUpdatedEventAsync
- Use Anchor object instead of names in buildDataNodes
- Avoid unnecessary ArrayList copy in updateDataNodesAndDescendants

Issue-ID: CPS-1536
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I46936a655a3d151357e55b68e1c4161e07100e84
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-service/src/main/java/org/onap/cps/api/impl/CpsDataServiceImpl.java
cps-service/src/main/java/org/onap/cps/notification/NotificationService.java
cps-service/src/main/java/org/onap/cps/spi/CpsDataPersistenceService.java
cps-service/src/test/groovy/org/onap/cps/api/impl/CpsDataServiceImplSpec.groovy
cps-service/src/test/groovy/org/onap/cps/api/impl/E2ENetworkSliceSpec.groovy
cps-service/src/test/groovy/org/onap/cps/notification/NotificationServiceSpec.groovy