Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47ebfaac1d3dc772b160a75f40ae068365a32ff5c93969fe31085995945906ef
Ticket: 90657479e8f2a76c6603726c25c03a3582402ad8
code review [2201fdb82c]
User & Date: pooryorick on 2017-12-11 23:50:31
Changes

  1. icomment:
    dkf, thank you for the quick turnaround on the request for review.
    
    I've removed the line in tclBasic.c, which was a mistake, and modified the
    <code>RemoveItem</code> macro as suggested.
    
    In <code>AllocObject</code>, the note next to the previous directly-constructed
    command indicated that the performance issue lay in string manipulation.
    <code>TclNRCreateCommandInNs()</code>, which has only come available recently,
    should obviate that cost.  I will add profile information shortly.
    
    I reviewed all the paths that could result in deletion of the object.
    Actually, harmonization of those paths was the goal of this effort.
    
    The new <code>DeleteDesendants</code> function and the additional reference
    counting may make the <code>IsRoot()</code> check unnecessary.  Maybe it can be
    left out until there is a test that indicates the need for it.
    
    I've added the check for arguments to the destructor back into tclOOBasic.c
    
    The new behaviour of <code>FOREACH</code> may indeed be unneccessary.  It was
    added at the beginning of the work, and the work evolved in a direction that
    should preclude the existence of any <code>NULL</code> entries in these arrays.
    However, this introduces a new performance cost in <code>RemoveClass</code>
    and <code>RemoveObject</code>, which now iterate over the array in order to
    remove the NULL entry.  I will investigate this further while profiling.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"