The Warp 10 platform imposes a number of configurable restrictions to WarpScript. By default, WarpScript code is restricted to abide by soft limits. However, a WarpScript stack that has been authenticated can raise its allowance up to a hard limit using an appropriate WarpScript function. These limits are configured by the backend configuration file (for example, for a default standalone version, this file is WARP10_HOME/etc/conf.d/20-warpscript.conf).
The following table describes each restriction, gives the configuration keys that set the soft and hard limits, and gives the associated WarpScript function.
|Restriction||Key for soft limit||Key for hard limit||WarpScript function|
|Maximum number of datapoints that can be fetched during a WarpScript execution||warpscript.maxfetch||warpscript.maxfetch.hard||LIMIT|
|Maximum number of GTS that can be retrieved from Directory during a WarpScript execution||warpscript.maxgts||warpscript.maxgts.hard||MAXGTS|
|Maximum number of operations a single WarpScript execution can do||warpscript.maxops||warpscript.maxops.hard||MAXOPS|
|Maximum number of buckets that can result from a call to BUCKETIZE||warpscript.maxbuckets||warpscript.maxbuckets.hard||MAXBUCKETS|
|Maximum depth of the stack||warpscript.maxdepth||warpscript.maxdepth.hard||MAXDEPTH|
|Maximum time (in ms) that can be spent in a loop||warpscript.maxloop||warpscript.maxloop.hard||MAXLOOP|
|Maximum level of recursion in macro calls||warpscript.maxrecursion||warpscript.maxrecursion.hard||MAXRECURSION|
|Maximum number of symbols that can be defined by a single WarpScript execution||warpscript.maxsymbols||warpscript.maxsymbols.hard||MAXSYMBOLS|
|Maximum number of cells in geographic shapes||warpscript.maxgeocells||warpscript.maxgeocells.hard||MAXGEOCELLS|
|Maximum number of pixels per PGraphics image||warpscript.maxpixels||warpscript.maxpixels.hard||MAXPIXELS|