|
From: | Mike Duvos |
Subject: | Re: [Bug-apl] Boolean Packing |
Date: | Thu, 20 Aug 2015 14:17:53 -0700 |
Big trade-off. Packing and unpacking with a lot of operations has got to be CPU expensive. Not packing is memory expensive. If I am correct, then I have a slight leaning towards the way GNU APL did it. If I am wrong and the expense of packing / unpacking over many operations is not expensive, then I'd lean towards IBM.BlakeOn Thu, Aug 20, 2015 at 3:16 PM, Mike Duvos <address@hidden> wrote:I use large bitmaps a lot in my code, so having them stored packed in the workspace is a huge issue for me.APL2 obviously packs boolean ravels 8 bits per byte. How does GNU APL store its booleans?[IBM APL2][GNU APL]
WA←⎕WA ⋄ A←1000 1000⍴1=1 ⋄ WA-⎕WA
125056
WA←⎕WA ⋄ A←1000 1000⍴1=1 ⋄ WA-⎕WA
48046080
[Prev in Thread] | Current Thread | [Next in Thread] |