Re: Hex2Bin??
| From: | Evan Nemerson | Date: | Wed, 01 May 2002 03:01:09 +0000 |
| Subject: | Re: Hex2Bin?? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95473@lists.php.net to get a copy of this message | ||
Computation time. CPU cycles.
On Tuesday 30 April 2002 13:56 pm, you wrote:
> Expensive how?
>
> -josh
>
> "Bogdan Stancescu" <mgv@fx.ro> wrote:
> > I'd recommend writing a wrapper around base_convert, naming it hex2bin
> > and using that instead. base_convert() is way too expensive for this
> > purpose (you know that any hex figure is translated to exactly four
> > bits, so you don't need any actual conversion - just replacement). This
> > is why I suggested the wrapper - you can change the code at any time if
> > you see it's too time-consuming...
--
Let us endeavor so to live that when we come to die even the undertaker will
be sorry.
Samuel Clemens