Skip to content
Tcl Source Code Artifact [9ffc461106]
Login

Artifact [9ffc461106]

Artifact 9ffc4611068a97cdda8717be2ff640eb406b776d6e99c4ea95454d2f497847f7:

Ticket change [9ffc461106] - Ticket [10545687da996248|10545687da] <i>Improve Tcl_GetNumberFromObj with abstract list interfaces</i> status still Open with 3 other changes by jan.nijtmans on 2025-09-05 13:01:35.
D 2025-09-05T13:01:35.191
J icomment Actually,\sI\sdon't\slike\sthis\schange.\r\n\r\nWhat\sis\sdone\shere\sis\sspeed-up\sthe\serror-case,\sslowing\sdown\sthe\smost-common\sOK\scase,\swhere\sthe\sTcl_Obj\sis\salready\sa\sdouble,\sint\sor\sbignum.\r\n\r\nIt's\sonly\sa\sfew\scompare\soperations,\snot\smuch\sat\sall,\sbut\sI\sdon't\ssee\smuch\sbenefit\son\sthis\schange.\sSpeed\sis\smore\simportant\sfor\sthe\sOK\scase\sthan\sfor\sthe\serror-case\s(which\sis\salready\sslow\sanyway),\stherefore\sI\sprefer\sthe\scode\sas\sit\swas.\r\n\r\nSorry!\r\n\r\nAdding\scomments,\sso\speople\sunderstand\sthe\slogic\sis\salways\sgood.\sMaybe\swe\sshould\scomment\shere\swhy\schecking\sfor\sdouble/int/bignum\sis\sdone\sfirst.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 10545687da9962482e3a9014b4cf9cbcca07e647
U jan.nijtmans
Z b8baaf432374b10446c403094051ac50