Re: Wouldn't it be nice to have a [binary set] command ?
- From: Fredderic <my-name-here@xxxxxxxxxx>
- Date: Thu, 31 Jan 2008 20:18:49 +1000
On Mon, 28 Jan 2008 16:51:36 -0800 (PST),
"Donal K. Fellows" <donal.k.fellows@xxxxxxxxx> wrote:
Fredderic wrote:
If you work this out in terms of TCL's internal storage, that'sOn a 32-bit system, it's 24 bytes per Tcl_Obj, assuming no sharing
10-12 distinct entities per record, at a rough 40b per Tcl_Obj,
(it's actually exactly 6 machine words). The additional overhead per
object due to memory allocation is very low (sub-byte after
amortization).
*nods* I was talking about 32-bit architectures, and I was ignoring
allocation overhead of the Tcl_Obj's for that exact reason.
I may have been a little overzealous in my estimation, though I was
allowing for a minimal string rep, also, which has its own overheads,
and at least a few characters. I suspect if I took an average, that
estimate is actually on the small side. My appologies if I didn't make
that obvious.
Fredderic
.
- References:
- Wouldn't it be nice to have a [binary set] command ?
- From: Rolf Schroedter
- Re: Wouldn't it be nice to have a [binary set] command ?
- From: Donal K. Fellows
- Re: Wouldn't it be nice to have a [binary set] command ?
- From: Rolf Schroedter
- Re: Wouldn't it be nice to have a [binary set] command ?
- From: Fredderic
- Re: Wouldn't it be nice to have a [binary set] command ?
- From: Donal K. Fellows
- Wouldn't it be nice to have a [binary set] command ?
- Prev by Date: Re: Why doesn't foreach return a value
- Next by Date: Re: Wouldn't it be nice to have a [binary set] command ?
- Previous by thread: Re: Wouldn't it be nice to have a [binary set] command ?
- Next by thread: Re: Wouldn't it be nice to have a [binary set] command ?
- Index(es):
Relevant Pages
|