in reply to Re: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly

There's a few problems with your C code.

All of these are solved by using SvPVbyte instead of SvPVX.

Replies are listed 'Best First'.
Re^3: Interleaving bytes in a string quickly
by BrowserUk (Patriarch) on Feb 26, 2010 at 20:10 UTC

    That's okay. It survived it's intended lifecycle(*) without incident.

    (*)The benchmark.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      What's the point of benchmarking code you can't use?

        I could use it. I know the data I'd be passing are byte strings. Nothing else makes sense given the purpose of the code.

        But I know I'm not going to use it, so I don't waste time perfecting code that I'm not going to use for all possible scenarios. It'd be like ironing my old newspapers before discarding them :)


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.