REGXSTBL parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
 
Line 20: Line 20:
When the [[New (Regex constructor)|Regex constructor]] is invoked, the regular expression string and replacement string are compiled and the original strings and compilations are saved in the STBL part of the object. If the total size of these strings and compilations exceeds <var>REGXSTBL</var>, the request is cancelled.
When the [[New (Regex constructor)|Regex constructor]] is invoked, the regular expression string and replacement string are compiled and the original strings and compilations are saved in the STBL part of the object. If the total size of these strings and compilations exceeds <var>REGXSTBL</var>, the request is cancelled.


Since the size of the regular expression and replacement compilation rarely exceed 16 bytes per source character (it's usually less), the default value of 2048 can accomodate almost all regular expressions with replacement strings of at least 120 characters. Regular expressions much longer than this are rare.
Since the size of the regular expression and replacement compilation rarely exceed 16 bytes per source character (it's usually less), the default value of 2048 can accommodate almost all regular expressions with replacement strings of at least 120 characters. Regular expressions much longer than this are rare.


Increasing the value of this parameter increases the STBL requirements for every request that uses <var>Regex</var> objects, usually by twice the amount of increase (one for each swapped-in object slot allocated).
Increasing the value of this parameter increases the STBL requirements for every request that uses <var>Regex</var> objects, usually by twice the amount of increase (one for each swapped-in object slot allocated).

Latest revision as of 20:08, 25 March 2022

STBL size for Regex objects

Summary

Default value
2048
Parameter type
System
Where set
User 0 parameter line
Related products
All
Introduced
Model 204 version 7.9

Description

This parameter indicates the amount of STBL to be assigned to each swapped-in Regex object.

When the Regex constructor is invoked, the regular expression string and replacement string are compiled and the original strings and compilations are saved in the STBL part of the object. If the total size of these strings and compilations exceeds REGXSTBL, the request is cancelled.

Since the size of the regular expression and replacement compilation rarely exceed 16 bytes per source character (it's usually less), the default value of 2048 can accommodate almost all regular expressions with replacement strings of at least 120 characters. Regular expressions much longer than this are rare.

Increasing the value of this parameter increases the STBL requirements for every request that uses Regex objects, usually by twice the amount of increase (one for each swapped-in object slot allocated).