Skip to content
Tcl Source Code History Of Ticket 1953758fff
Login

History Of Ticket 1953758fff

Artifacts Associated With Ticket 1953758fff

  1. Ticket change [0dea7d7485] (rid 114448) by ferrieux on 2008-04-28 23:47:33:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      So far, the CONCAT1 instruction goes through the string reps of all objects, even when all are byte arrays. This compromises performance in heavy byte-juggling code since it means converting back and forth to UTF-8. This is odd since [string range] et al. do have an optimization for the byte array case.
      
      The attached patch (against 8.5.1) fixes that, by first looping through all to-be-concatenated objects to check whether they are all byte arrays (or empty strings).
      In that case, all operations are done at byte array level, while keeping the very same logic regarding in-place operation if possible (unshared first object).
      
      Moreover, the inclusion of the empty string case allows for the "K-free K" idiom $x[set x {}], which in the end allows the following in-place byte array growing operation:
      
            set x $x[set x {}]$y
      
      Test suite OK, and stepped through gdb to check most branches.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "ferrieux"
    10. subsystem initialized to: "12. ByteArray Object"
    11. title initialized to: "CONCAT1 of ByteArrays"
    12. type initialized to: "Patch"
  2. Add attachment "binconcat.patch" [4930ea989a] (rid 100018) by ferrieux on 2008-04-29 06:47:35.

  3. Ticket change [4d4336dab5] (rid 127026) by ferrieux on 2008-04-29 06:47:35:

    1. icomment:
      
      
      File Added - 276219: binconcat.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [e258cc52ab] (rid 87607) by ferrieux on 2008-04-29 15:56:40:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=496139
      Originator: YES
      
      Miguel, reassigning this to you on Donal's advice.
      Hope you don't mind :-}
      
      
    3. login: "ferrieux"
    4. mimetype: "text/plain"
    5. username: "ferrieux"
  5. Ticket change [cdc4e6f4e2] (rid 95948) by dgp on 2008-06-28 01:46:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      when applied to HEAD, the compiler has
      some gripes about this patch:
      
      /home/dgp/cvs/tcl/unix/../generic/tclExecute.c: In function ‘TclExecuteByteCode’:
      /home/dgp/cvs/tcl/unix/../generic/tclExecute.c:2221: warning: pointer targets in assignment differ in signedness
      /home/dgp/cvs/tcl/unix/../generic/tclExecute.c:2224: warning: pointer targets in assignment differ in signedness
      /home/dgp/cvs/tcl/unix/../generic/tclExecute.c:2230: warning: pointer targets in assignment differ in signedness
      /home/dgp/cvs/tcl/unix/../generic/tclExecute.c:2244: warning: pointer targets in assignment differ in signedness
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [af060562c9] (rid 97737) by msofer on 2008-06-28 22:47:49:

    1. assignee changed to: "ferrieux"
    2. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      This looks OK for commit to HEAD after fixing those warnings; Alex, please do. 
      
      It would be nice to insure that the testsuite covers any possible gotcha, eg different combinations of concat'ing bytearrays, empties and other things at first/other places.
      
      It'd be also nice to check if tclbench will expose the improvement, and to write a small bench to include there if not.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  7. Add attachment "binconcat2.patch" [e14f407439] (rid 87424) by ferrieux on 2008-06-29 16:06:58.

  8. Ticket change [bcabc8befb] (rid 101792) by ferrieux on 2008-06-29 16:06:58:

    1. icomment:
      
      
      File Added - 283079: binconcat2.patch
      
      Logged In: YES 
      user_id=496139
      Originator: YES
      
      Thanks for the green light.
      
      The just attached update fixes the warnings.
      FWIW, these warnings don't appear with msys/mingw, based on gcc 3.4.2.
      Maybe you compiled on unix with a more modern gcc ?
      
      Will now do my fist solo flight with non-anon cvs :-)
      File Added: binconcat2.patch
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  9. Ticket change [7630b6d853] (rid 105532) by ferrieux on 2008-06-30 06:24:07:

    1. icomment:
      Logged In: YES 
      user_id=496139
      Originator: YES
      
      Committed to HEAD.
      Will now prepare test and tclbench cases.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  10. Ticket change [cf987bb48f] (rid 113016) by ferrieux on 2008-07-24 06:22:27:

    1. closedate changed to: "2008-07-23T23:22:27"
    2. closer changed to: "ferrieux"
    3. icomment:
      Logged In: YES 
      user_id=496139
      Originator: YES
      
      Test suite updated with a relative speed test (detect overhead of conversions).
      
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "ferrieux"