Skip to content
Tcl Source Code Changes To New abstract list representations
Login

Changes To New abstract list representations

Changes to "New abstract list representations" between 2025-05-15 16:01:19 and 2025-05-15 16:03:54

1

2
3
4
5
6
7
8

1
2
3
4
5
6
7
8
-
+








<div style="max-width:60em">
The proposal below introduces new Tcl_Obj internal representations based on the
TIP 636 abstract list API. Because there are no changes to public Tcl commands
or C interfaces, the changes will not go through a formal TIP process. 

## Motivation

The primary purpose of the changes is memory efficiency for large lists. As a
︙
224
225
226
227
228
229
230


224
225
226
227
228
229
230
231
232







+
+

The `apn-tip636-appl` branch contains the implementation of the proposal.
The `listTypes.test` file contains the test cases to exercise the three new
internal list types as well as the existing ones. `gcov` shows 91% code
and 100% function coverage of the new implementation. Missing coverage is
for "panic blocks" and validation which is not exercised as it is already
done by upper callers.

</div>