From: SourceForge.net <no...@so...> - 2011-03-19 03:20:04
|
Patches item #3224663, was opened at 2011-03-18 23:20 Message generated for change (Tracker Item Submitted) made by delbaere You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3224663&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Christian Delbaere (delbaere) Assigned to: Nobody/Anonymous (nobody) Summary: Tcl: NULL bug fix and hash table method lookup Initial Comment: This patch addresses two issues: 1. Currently if a wrapped function returns a NULL value, a "NULL" command will be created in the Tcl interpreter. Calling this command will cause a segmentation fault. A very small part of this patch makes a change to not create the "NULL" command when returning a NULL object value. 2. The current implementation searches for class methods using a linear search. This can cause performance issues in wrappers for classes with many member functions. This patch adds a method hash table to classes and changes method name lookup to use the hash table instead of doing a linear search. I've also added a Tcl run-time test for null_pointer to check for the unwanted "NULL" command. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3224663&group_id=1645 |