Overview
| Artifact ID: | 9ffc4611068a97cdda8717be2ff640eb406b776d6e99c4ea95454d2f497847f7 |
|---|---|
| Ticket: | 10545687da9962482e3a9014b4cf9cbcca07e647
Improve Tcl_GetNumberFromObj with abstract list interfaces |
| User & Date: | jan.nijtmans on 2025-09-05 13:01:35 |
Changes
- icomment:
Actually, I don't like this change. What is done here is speed-up the error-case, slowing down the most-common OK case, where the Tcl_Obj is already a double, int or bignum. It's only a few compare operations, not much at all, but I don't see much benefit on this change. Speed is more important for the OK case than for the error-case (which is already slow anyway), therefore I prefer the code as it was. Sorry! Adding comments, so people understand the logic is always good. Maybe we should comment here why checking for double/int/bignum is done first.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"