Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #34442] [TODO] *BooleanArray PMCs should use single bit per bool

4 views
Skip to first unread message

Bernhard Schmalhofer

unread,
Mar 15, 2005, 6:06:41 PM3/15/05
to bugs-bi...@rt.perl.org
# New Ticket Created by Bernhard Schmalhofer
# Please include the string: [perl #34442]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34442 >


This was mentioned by Leo in Ticket 34934 and 30230:

> Oh well, while at it, the *BooleanArray should just use one bit per item
> not an INTVAL.

I'll tackle that. First I'll propable take a look at Bit::Vector in Perl5,
as there are propably a lot of interesting methods on a boolean array.

There are even CPUs with processor instructions for counting set bits.
Does that call for some inline assembler in PMC C-code?

CU, Bernhard

--
/* Bernhard.S...@biomax.de */

DSL Komplett von GMX +++ Superg�nstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

Leopold Toetsch

unread,
Mar 16, 2005, 2:27:19 AM3/16/05
to perl6-i...@perl.org, bugs-bi...@netlabs.develooper.com
Bernhard Schmalhofer (via RT) wrote:

>
> This was mentioned by Leo in Ticket 34934 and 30230:
>
>
>>Oh well, while at it, the *BooleanArray should just use one bit per item
>>not an INTVAL.
>
>
> I'll tackle that. First I'll propable take a look at Bit::Vector in Perl5,
> as there are propably a lot of interesting methods on a boolean array.

Great, thanks.

> There are even CPUs with processor instructions for counting set bits.
> Does that call for some inline assembler in PMC C-code?

Not yet IMHO. But I can imagine that PGE might need all available speed
hacks. Let's see.

> CU, Bernhard

leo

0 new messages