Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1f1b04dccd7cf01edde632ac1726cfb833a00af1
Ticket: 746722ffffffffffffffffffffffffffffffffff
Tcl_AsyncMark not delivered in tight loops
User & Date: msofer on 2003-09-15 06:45:23
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Option (0): check for async tasks at the top of the TEBC
    loop, after every instruction. Easiest, definitely overkill,
    probably unacceptable performance loss
    
    Option (1): special bytecode for "command start" or "command
    end". Easiest, performance? Can skip it for INST_EVAL,
    INST_INVOKE and INST_EXPR as they do the right thing already.
    
    Option (2): special bytecode emitted in every loop (and also
    after every, say, fifth command)
    
    Option (3): special bytecode emitted in every tight loop.
    Best, tougher to implement as the compiler has to study the
    "tightness" of the loops. A suitable definition could be: a
    loop is tight if it has none of the previously mentioned
    instructions. Also requires a solution for long non-loop bcc
    sequences
    
    Option (1) is the cleanest/easiest in my opinion. Never got
    around to code it and time it
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"