<i>Improve Tcl_GetNumberFromObj with abstract list interfaces</i> status still Open with 3 other changes
by
.
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