[ruby-core:71699] [Ruby trunk - Feature #11745] [Open] saving bits

From: eike@...
Date: 2015-11-27 01:49:55 UTC
List: ruby-core #71699
Issue #11745 has been reported by Eike Dierks.

----------------------------------------
Feature #11745: saving bits
https://bugs.ruby-lang.org/issues/11745

* Author: Eike Dierks
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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)























-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next