in reply to Re: perl bit matrix transposition / weak typing problem
in thread perl bit matrix transposition / weak typing problem
Yes, my mistake on the transpose function with no return value. I have updated it correctly. I had trimmed it down to avoid warlording and posting a million lines of irrelevant code, and inadvertently chopped the return line as well :)
Anyway, the pack/unpack method above converts to a bitstring, then back again, does it not? Using a sequence of ascii '1's and '0's was precisely what I was trying to avoid... and I *know* perl can accomplish this task in that way. But, that method increases the memory requirements of the implementation eight-fold, adds internal conversion overhead, and doesn't fall into the design requirements of the original question :>
I hope this isn't misconstrued, but remember, this function has to transpose *every* $BUFSIZE bytes, and quickly, with low memory requirements, to be able to sit at the position in the protocol stack that it does.
Thanks,
Jason
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl bit matrix transposition / weak typing problem
by ysth (Canon) on Dec 13, 2004 at 12:31 UTC | |
by infi (Acolyte) on Dec 13, 2004 at 13:16 UTC |