The Warp 10™ platform imposes a number of configurable restrictions to WarpScript™. By default, warpscripts are 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-standalone.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|
|Number of datapoints that can be fetched during a WarpScript execution||warpscript.maxfetch||warpscript.maxfetch.hard||LIMIT|
|Number of GTS that can be retrieved from Directory during a WarpScript execution||warpscript.maxgts||warpscript.maxgts.hard||MAXGTS|
|Number of operations a single WarpScript execution can do||warpscript.maxops||warpscript.maxops.hard||MAXOPS|
|Number of buckets that can result from a call to BUCKETIZE||warpscript.maxbuckets||warpscript.maxbuckets.hard||MAXBUCKETS|
|Depth of the stack||warpscript.maxdepth||warpscript.maxdepth.hard||MAXDEPTH|
|Time (in ms) that can be spent in a loop||warpscript.maxloop||warpscript.maxloop.hard||MAXLOOP|
|Level of recursion in macro calls||warpscript.maxrecursion||warpscript.maxrecursion.hard||MAXRECURSION|
|Number of symbols that can be defined by a single WarpScript execution||warpscript.maxsymbols||warpscript.maxsymbols.hard||MAXSYMBOLS|
|Number of cells in geographic shapes||warpscript.maxgeocells||warpscript.maxgeocells.hard||MAXGEOCELLS|
|Number of pixels per PGraphics image||warpscript.maxpixels||warpscript.maxpixels.hard||MAXPIXELS|