Project

General

Profile

Actions

Feature #11745

closed

saving bits

Added by eike.rb (Eike Dierks) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:71699]

Description

Hi at the ruby team,

Sometimes we are still working with bits: these yes/no things.
But even a bit is an object, this is ruby!

I'm not even sure how bits are save in mri,
I believe they are all objects (which is good)

I believe they should be fly weights,
and we should save bits one by one,
instead of wasting a full full object for every bit.
(sorry if it already works this way)

I'd like to sugest an optimization for the mri,
that a boolean object should be saved in one bit.
This obviously needs a lot of changes underneath.
(which might not be worth it in the end)

I coming from this rails stuff.
who cares about the bits ...
we're spendig gigs of ram anyway.

but then again, thinking of the bit.
I sometimes feel like saving a bit should take less memory.

I could imagine to make a special rule for bit objects,
to save them more efficiently.

(please look this up at smalltalk, they did it there as well)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0