Skip to content
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

Merged
merged 45 commits into from
Nov 2, 2023
Merged

added data source support #407

merged 45 commits into from
Nov 2, 2023

Conversation

dprzybyl
Copy link
Collaborator

No description provided.

List<ApmType> paramNames = parameters.get(1).getList();
String[] parts = StringUtils.substringAfter(regex, "/content/").split("/");
int paramIndex = 0;
List<Config> configs = new ArrayList<>();
Copy link

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

Copy link
Collaborator Author

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
Copy link

@krystian-panek-vmltech krystian-panek-vmltech left a 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"

@dprzybyl dprzybyl merged commit 6afd12a into master Nov 2, 2023
1 check passed
@dprzybyl dprzybyl deleted the add-data-source-support branch November 3, 2023 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants