]> source.dussan.org Git - sonarqube.git/commit
SONAR-6959 Performance improvements
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Mon, 2 Oct 2017 08:28:58 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2017 08:28:58 +0000 (10:28 +0200)
commit8115d8b7e41c38120650bac7432291c722b9a7c3
treefa1799aab7cd353475b32d622b4a0408de84cac0
parent583e42c16797bf57162ebd502e12241d8765a8fc
SONAR-6959 Performance improvements

* Avoid creation of intermediary array

* SONAR-6959 Speed-up copy of custom measures in Compute Engine

* Use light object to get key/uuid map of components

* Avoid always formatting string

* Minor refactoring

* Avoid cost of hash

* Ajust perf tests
20 files changed:
server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java
server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentDao.java
server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentMapper.java
server/sonar-db-dao/src/main/java/org/sonar/db/component/KeyWithUuidDto.java [new file with mode: 0644]
server/sonar-db-dao/src/main/resources/org/sonar/db/component/ComponentMapper.xml
server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDaoTest.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/component/ComponentImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/component/ComponentTreeBuilder.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/component/ComponentUuidFactory.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/filemove/FileMoveDetectionStep.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/ComponentIssuesRepositoryImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/measure/MapBasedRawMeasureRepository.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/source/SymbolsLineReader.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/CustomMeasuresCopyStep.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistMeasuresStep.java
server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/component/ComponentImplTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/step/CustomMeasuresCopyStepTest.java
sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/RangeDistributionBuilder.java
tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java