Skip to content
Tcl Source Code View Ticket
Login

View Ticket

list length limit hits too soon

Closed / Fixed3293874fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2011-04-27 16:56:05
% set l [lrepeat 0x10000000 1]; concat
% lappend l 2; concat
max length of a Tcl list (536870909 elements) exceeded

A limit of 536870909 is stopping creation of a list
of 268435457 elements.  Tcl's imposed length limits
are made about twice as bad as needed because the
growth algorithm is incomplete.

Contrast with:

% set s [string repeat a 0x40000000]; concat
% append s b; concat
% string length $s
1073741825
dgpplain2011-05-12 03:41:23
Work toward patch on bug-3293874 branch
dgpplain2011-06-01 03:40:27
allow_comments - 1

fixed in trunk
Log in (anonymous is fine) to add a comment.