Comments (1)
Rewrtiting the evaluator to prevent hundreds of database interactions (see step 5).
Initial outlook is good - now only takes 10 seconds (as opposed to several minutes).
I made a further attempt to speed it up by removing flows which could not be covered by any statement because there are not statements for the flows datatypes. This only reduced the flow population by a small amount, therefore the increased complexity is not worth the minor performance lift. The code I tried (and am now removing is repeated below (just in case!)
HashSet<Long> allInscopeDTIds = ruleVantagePoints
.stream()
.map(FlowClassificationRuleVantagePoint::dataType)
.distinct()
.reduce(
new HashSet<Long>(),
(acc, dt) -> {
acc.addAll(findChildren(dtHierarchy, dt.id()));
return acc;
},
(a, b) -> {
a.addAll(b);
return a;
});
Set<FlowDataType> inScopePopulation = SetUtilities.filter(population, p -> allInscopeDTIds.contains(p.dtId()));
LOG.debug("Initial Population: {}, Trimmed Population: {}", population.size(), inScopePopulation.size());
from waltz.
Related Issues (20)
- Ratings: extend support to non-app entities
- Surveys: Allow questions which have no required response
- Search: allow datatypes to be searched for by code HOT 1
- Waltz Project Meeting: 2024-07-08 HOT 1
- Involvement: Oversight inclusion needs to be limited by involvement kind HOT 4
- Prep 1.61.1
- Flows: Data flows on the aggregate pages should use the new Flow Details subsection
- Surveys: allow survey_run admin / run owner to update the name and description of a survey run
- Physical Flows: Cannot be created without setting an external id
- App search not filtering apps with the is_removed flag set to true
- Flows: physical to logical datatype rippler should use a dedicated provenance
- Upgrade library versions
- Flow Details: directional filter makes no sense on aggregate pages
- Application: apps with the is_removed flag not being shown correctly in the ui
- Admin: show users who have a given role
- Survey Templates: When creating a new question for a template doesn't save after picking measurable question type
- Logical Flows: image export should clearly link to the app exported from
- Waltz Project Meeting: 2024-08-12 HOT 2
- Prep 1.63
- First time download, attempting to launch with docker; getting error that gen_random_uuid() doesn't exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waltz.