-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustachediscussfeedback_needed
Description
The maximum Painless script size is now set to 16384 bytes.
As I understand, it is hardcoded in Compiler.java:
static final int MAXIMUM_SOURCE_LENGTH = 16384;
This is not enough for my use case.
My workaround now is to compress the script by removing spaces, line breaks and shortening some variable names to make the file fit in the 16 Kb.
Is there any serious reason behind this limitation? It would be great to consider allowing a user to change this value in the configuration file or at least set it to some 64 Kb.
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustachediscussfeedback_needed
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
cbuescher commentedon Jul 4, 2017
@conquel I think the original reasoning here was that scripts should be relatively small under normal circumstances, otherwise people tend to write plugins for more complicated things. I marked this for discussion but for that it would be good to get some more information about your use case for that. Can you briefly describe why your script needs to be so long? Maybe there are alternatives to consider instead of increasing this limit.
jasontedor commentedon Jul 4, 2017
Duplicates #23209
jasontedor commentedon Jul 4, 2017
@conquel I would suggest leaving an answer to @cbuescher's question on #23209 otherwise we end up with a fractured discussion.