Proposal for Byte savings in VarBit structure

Поиск
Список
Период
Сортировка
От Gokulakannan Somasundaram
Тема Proposal for Byte savings in VarBit structure
Дата
Msg-id 9362e74e1003211236nd6a4f84h479ec95f52b94f44@mail.gmail.com
обсуждение исходный текст
Ответы Re: Proposal for Byte savings in VarBit structure  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,<br />   I was looking at the VarBit data structure and found out that instead of storing the number of bits in four
bytes,we can save the number of bits that are valid in the last byte. Since we already store the number of bytes in
VarlenaHeader, we can calculate the number of valid bits by doing the small math. ( (No. of bytes-1) * 8  + valid bits
inthe last byte).<br />   This would save atleast 8 bytes for someone, who is using the varbit data type using less
than24 bits.<br /><br />  Waiting for comments.<br /><br />Thanks,<br />Gokul.<br /> 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: more practical view on function's source code
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal for Byte savings in VarBit structure