Skip to content

Commit

Permalink
LDEV-5156 change default arguments and local scopes initial capacity …
Browse files Browse the repository at this point in the history
…to 16
  • Loading branch information
zspitzer committed Nov 21, 2024
1 parent 3312572 commit ecd035b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
LUCEE_DOCKER_FILES_PAT_TOKEN: ${{ secrets.LUCEE_DOCKER_FILES_PAT_TOKEN }}
LUCEE_BUILD_FAIL_CONFIGURED_SERVICES_FATAL: true
LUCEE_SCOPE_LOCAL_CAPACITY: 16
LUCEE_SCOPE_ARGUMENTS_CAPACITY: 16
#run: ant -noinput -buildfile loader/build.xml
run: |
echo "-------DO_DEPLOY: ${{ env.DO_DEPLOY }} -------";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public final class ArgumentImpl extends ScopeSupport implements Argument, ArrayP
private static int argumentInitialCapacity;

static {
argumentInitialCapacity = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.scope.arguments.capacity", "4"), 4);
argumentInitialCapacity = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.scope.arguments.capacity", "16"), 16);
}
// private boolean supportFunctionArguments;

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/runtime/type/scope/LocalImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class LocalImpl extends ScopeSupport implements Scope, Local {
private static int localInitialCapacity;

static {
localInitialCapacity = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.scope.local.capacity", "4"), 4);
localInitialCapacity = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.scope.local.capacity", "16"), 16);
}

public LocalImpl() {
Expand Down

0 comments on commit ecd035b

Please sign in to comment.