Re: [HACKERS] lztext and parser

Поиск
Список
Период
Сортировка
От wieck@debis.com (Jan Wieck)
Тема Re: [HACKERS] lztext and parser
Дата
Msg-id m11qyHW-0003kGC@orion.SAPserv.Hamburg.dsh.de
обсуждение исходный текст
Ответ на Re: [HACKERS] lztext and parser  (Karel Zak - Zakkr <zakkr@zf.jcu.cz>)
Список pgsql-hackers
Karel wrote:

> In the lztext_eq(lztext *lz1, lztext *lz2) you use lztext_cmp().
> I'm not sure if it is good, because you must decompress fistly, but
> you don't need information about '<' or '>', you need '=' only. Why
> you not use memcmp() (or other method) for this, and comparate this
> without decompression? Two equal string is equal in a compressed form,
> or not?

    For now, yes. But the current lztext implementation is only a
    starting poing (still). The final  version  might  have  some
    runtime customizable parameters for the compression algorithm
    (good match size and minimum compression rate). Then, if some
    data is stored and the parameters change after, this wouldn't
    be true any more.

> All in this letter is comments and suggestions, you can always remove
> this letter to /dev/null :-)

    Would never do so. All  suggestions  are  welcome  and  might
    trigger another idea in someone elses head.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck@debis.com (Jan Wieck) #

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

Предыдущее
От: Karel Zak - Zakkr
Дата:
Сообщение: Re: [HACKERS] lztext and parser
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCHES] ':' and ';' operators