Tcl Source Code

View Ticket
Login
Ticket UUID: 1019873
Title: Increase [binary scan] sharing
Type: RFE Created on: 2004-08-31 17:57:27
Submitter: dkf Assigned to: dkf
Subsystem: 12. ByteArray Object Severity:
Priority: 5 Medium Last modified: 2004-09-01 01:02:40
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
Do some sharing of integer result objects between
multiple invokations of [binary scan] (minimally just
the zero value?) so code that scans in bits doesn't end
up allocating masses of identical objects.
User Comments:
msofer added on 2004-09-01 01:02:40:
Logged In: YES 
user_id=148712

If we are going to do this, maybe we should provide an
interp-wide cache of small integers (-128 to 255 maybe).

In a second step we can let the compiler and TEBC profit
from it too, and expand the use to other tcl commands.