Skip to content
Tcl Source Code Check-in [22f8fd36d9]
Login

Check-in [22f8fd36d9]

Overview
Comment:This branch explores the performance implications of relacing the dynamic array data structure underlying Tcl_Preserve/Release with a Tcl_HashTable, i.e a change from nominally O(n) to nominally O(1). In this initial work the Reference data structures are individually allocated and freed. A continuation may add a free-list of structures for quicker re-use without going through the memory manager. Other things we can explore here: Does it make sense to use TSD (i.e. Thread-Specific Data), to get rid of the mutex currently used in this subsystem ? Or even better, can we assume that preserved data is always tied to some interpreter, allowing us to tie the data structures here in the same manner ? Passes testsuite. Note: I have no specific benchmark here, only tclbench. Which makes it difficult to discern how much loss or gain we have. Looking over the table it seems to be roughly +/-0. Tools making the comparison of two tclbench results easier would be appreciated.
Timelines: family | ancestors | novem-ak-preserve-experiments
Files: files | file ages | folders
SHA1: 22f8fd36d9ccc33341b3507907c964bce6d6ce6a
User & Date: andreask on 2012-12-03 20:47:51.520
Original Comment: This branch explores the performance implications of relacing the dynamic array data structure underlying Tcl_Preserve/Release with a Tcl_HashTable, i.e a change from nominally O(n) to nominally O(1). In this initial work the Reference data structures are individually allocated and freed. A continuation may add a free-list of structures for quicker re-use without going through the memory manager. Other things we can explore here: Does it make sense to use TSD (i.e. Thread-Specific Data), to get rid of the mutex currently used in this subsystem ? Or even better, can we assume that preserved data is always tied to some interpreter, allowing us to tie the data structures here in the same manner ?
Other Links: branch diff | manifest | tags
Context
2012-12-03
20:47
This branch explores the performance implications of relacing the dynamic array data structure unde... leaf check-in: 22f8fd36d9 user: andreask tags: novem-ak-preserve-experiments
13:02
Remove obsolete functions Tcl_GetDefaultEncodingDir and Tcl_SetDefaultEncodingDir check-in: 1dfcdabf11 user: jan.nijtmans tags: novem
Changes