Artifact 29a121ff18430bf67aa8d80c1b67d6a9d3e917f8377cae28a4e1e13be449b402:
- File typeparse/tests_tclsh/t74_produit_compact.out — part of check-in [e5b7824c45] at 2026-10-24 11:46:13 on branch tip-764_tcl90 — The v15t version is in typeparse.zip. Point 1: `type def {-compact}pointC {…}` is accepted, and any list of `pointC` elements is stored in contiguous memory blocks ("cases"). Point 2: A list that serves as a field within a product type—such as `pts` in `polyC`—is also stored in contiguous memory blocks, even within a nested product. Point 3: This has been added to the roadmap. In the meantime, using `{-compact}pointC` slows down the byte-stream path in `geo_c.tcl` (encoding the area: from 1.1 ms to 4.5 ms). Consequently, I have left `geo_c.tcl` without the `{-compact}` option. Benchmark: `bench.tcl` now displays the performance difference relative to "bare" Tcl—indicated as `(/ 2.7)` for slower and `(x 13.0)` for faster. All checks pass: The 52 tests that have an expected output—including the new `t74_produit_compact`—all pass. The outputs are identical, regardless of whether the compact form is used. `valgrind` reports no issues in either mode. Full Tcl test suite: the same 61 failures as in v15. (user: Florentis, size: 598) [annotate] [blame] [check-ins using]
type is {compact?}pointC : 1 type is {compact?}polyC : 0 p = 2 {{1.0 2.0} {3.0 4.0}} pts : cases (3 normalisé en 3.0) p(pts.1.x) = 3.0 pointC set p(pts.0.y) 7.5 : 2 {{1.0 7.5} {3.0 4.0}} pts : cases octets : 40 n = 2 1.0 7.5 3.0 4.0 decode : 2 {{1.0 7.5} {3.0 4.0}} pts : cases codec Tcl, mêmes octets : 1 lappend p(pts) : 3 {{1.0 7.5} {3.0 4.0} {5.0 6.0}} pts : cases boite : b(poly.pts) : cases b(poly.pts.2.y) = 6.0 list.pointC : {1.0 2.0} {3.0 4.0} cases refus : 1 expected floating-point number but got "a" sans -compact : 1 {{1.0 2.0}} pts en cases si compact on : 1