Lotus notes script library size

hi,

there is a script library of current size 695,742 bytes. (noticed this design doc. properties of script lib)

this script lib is called from agent and as of now the same works fine.

will there be any issues if the size of the script lib. increases?

Thanks,

-AK.

Subject: Lotus notes script library size

thanks for the responses … but my actual question/doubt is the current script lib. size will continue to grow from 695,742 bytes to +100,000 bytes max. … will it work or we will end up in script lib. corrupt?

if it will work without any prblm … we do not want to spend much time in breaking up into smaller pieces.

i guess only IBM can answer this question.

  • as of now with current size (695,742 bytes) it works fine.

-AK.

Subject: Lotus notes script library size

Hi,

probably

From the help file

Limits on compiler and compiled program structure in LotusScript

Item Maximum
Number of lines per script or source file, not including the contents of %Include files 64K
Depth of nested %Include directives 16
Number of compilation errors before the LotusScript compiler halts 20
Number of symbols in a module’s symbol table. 64K
Number of recursive calls (recursion level for a given function) 32Kbyte stack size
Storage size of all data in a given scope (See “Storage size of data,” below.) Module: Limited by available memory.
Class: 64K bytes
Procedure: 32K bytes
Size of executable module code Limited by available memory.
Storage size of data
The limits on the storage size of data in a given scope apply to fixed-size variables: scalar variables except for variable-length strings; user-defined type variables; and fixed arrays of these scalar variables and user-defined type variables. Depending on the order of declaration, alignment of variables on storage boundaries can take extra space. For example, an Integer variable is aligned on a 2-byte boundary, and a Long variable is aligned on a 4-byte boundary.
The maximum size of data in each dynamic variable (each variable-length string, each list, each dynamic array, and each instance of a class) is limited by available memory. However, each such variable will use 4 bytes for data in the scope where it is declared.
Because of run-time needs, LotusScript might generate an Out of stack error just before it reaches the data storage size limit.
See Also

Subject: RE: Lotus notes script library size

Thanks for the response … i did go thru’ the documentation … but am not sure what the following line means …"Number of lines per script or source file, not including the contents of %Include files 64K "

per source file means … per script lib?? if yes the current size is far ahead of said size … i hope you understand.

Any help from anyone appreciated.

-AK.

Subject: RE: Lotus notes script library size

I believe “Number of lines per script or source file” means just the line count of the human-readable source code.When you look at the design doc properties of a script library, it shows the total byte count of everything in the design doc, including source code, compiled code, and other fields in the doc. This is a much bigger number than the line count.

Example: I have a script library where the total size (in the design doc properties) is 216,142 bytes. This is probably the biggest script library I’ve ever dealt with.

If I export the code to a LSS file, the total size of that file is 105,273 bytes.

If I open the file in a text editor, it shows a total of 2,896 lines of code. This is the number that can’t exceed 64K.

From that example, I’d guess your script library has about 7K lines of code, which is still far under the limit.

Subject: RE: Lotus notes script library size

The 64K limit was hard and fast in R5 – the documentation is out of date. I don’t know what the current limit actually is, but a lot of us got a pleasant surprise when Notes and Domino 6 was released.