Re: max string size
Bruno Haible via clisp-devel <[email protected]> Mon, 25 Nov 2024 21:55:35 +0100
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <5628043.Z72eQZTzOr@nimes> |
> whether there's an easy way to fix the issues reported in > https://sourceforge.net/p/clisp/mailman/message/58728542/ array-dimension-limit is for general arrays. The error message *** - string too long: desired length 4194304 exceeds the supported maximum length comes from this limit: #ifdef TYPECODES #define stringsize_limit_1 ((uintL)(bit(intLsize-6)-1)) #else #define stringsize_limit_1 ((uintL)(bit(intLsize-10)-1)) #endif The smaller of these limits is 2^22-1, that is, > 4 millions. This is a good compromise of space (and thus speed) for functionality. If you need larger data structures, use arrays of arrays or arrays of strings. Bruno _______________________________________________ clisp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-devel