dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
6
share rss forum feed


Trev
IP Telephony Addict
Premium
join:2009-06-29
Victoria, BC
kudos:6
reply to RTuesday

Re: By the numbers.

said by RTuesday:

Better still, just pack it into three unsigned bytes (2^24) and format on output. Saves 11 out of your current 14 bytes... (and just turn away anybody who has those awkward foreign phone numbers).

+1

And same for IP addresses. An IP address will fit in four bytes once converted properly (but make your column 16 bytes so you can store IPv6 addresses as well).
--
Wondering what I do? Find out at »www.digitalcon.ca
Get your Obihai ATA in Canada.

Mango
What router are you using?
Premium
join:2008-12-25
www.toao.net
kudos:13
Reviews:
·AcroVoice
·Callcentric
·Anveo
I would, but they like to make notes with the phone number.

555-555-1234 (Bob's cell) / 455-555-1234 ext 7 / 355-555-1234 after 7pm

Actually, I was kidding when I mentioned saving disk space. The database that runs my employer's entire company is only 7MB!