literal_strings_few_large_python
No overview available.
def literal_strings_few_large_python(
count: integer,
size: integer
) - > string
Generates a Python source code string containing a small number of very large string literals. This is typically used for stress-testing parsers or benchmarking memory allocation during compilation.
Parameters
| Name | Type | Description |
|---|---|---|
| count | integer | The number of large string variables to generate in the output script. |
| size | integer | The length in characters for each generated string literal. |
Returns
| Type | Description |
|---|---|
string | A valid Python script containing the generated large string assignments. |