-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added data source support #407
Conversation
List<ApmType> paramNames = parameters.get(1).getList(); | ||
String[] parts = StringUtils.substringAfter(regex, "/content/").split("/"); | ||
int paramIndex = 0; | ||
List<Config> configs = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you don't know the size of results prefer LinkedList; for constant size lists prefer ArrayList; when you use ArrayList then if you exceed to capacity then the whole items are reallocated in memory which is slow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the size of it is so small, average 3, that relocation performance is not an issue
# Conflicts: # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/ReferenceFinder.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/argument/ArgumentResolver.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/executioncontext/ExecutionContext.kt
# Conflicts: # app/aem/install/src/main/java/com/cognifide/apm/install/launchers/ApmInstallService.java
# Conflicts: # app/aem/install/src/main/java/com/cognifide/apm/install/launchers/ApmInstallService.java
# Conflicts: # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/ApmType.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/ReferenceFinder.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/ScriptRunner.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/argument/ArgumentResolver.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/executioncontext/ExecutionContext.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/executioncontext/VariableHolder.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/grammar/utils/ImportScript.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/services/ModifiedScriptFinder.kt # app/aem/core/src/main/kotlin/com/cognifide/apm/core/services/version/VersionServiceImpl.kt # app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/ScriptRunnerTest.groovy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nice features; thanks
- dry run / run icons on listing
- padding before "3 seconds ago" / after running "dry run"
- consider reducing no of commands with similar functionality (GROUPS, LEVELS, NODES) for the sake of simplicity; "learn once - cover all"
# Conflicts: # app/aem/core/src/main/java/com/cognifide/apm/core/grammar/datasource/DataSource.java
# Conflicts: # app/aem/core/src/main/antlr/ApmLang.g4 # app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/ScriptRunnerTest.groovy # app/aem/core/src/test/resources/define.apm
No description provided.