[ 
https://issues.apache.org/jira/browse/LUCENE-6086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-6086:
---------------------------------
    Attachment: LUCENE-6086.patch

Here is an updated patch:
 - renamed ZLong to TLong ('T' for 'timestamp')
 - replaced {{1 << 5}} with {{0x20}} when applied as a mask
 - switch floats and doubles from zig-zag encoding to an offset. I took this 
change as an opportunity to change the range to start at -1 since I think 
negative floating point values are less common than positive values? I just 
kept -1 as I believe this number can sometimes be used to encode for "unset". 
(the encoding is already biased towards positive values since random negative 
values take one more byte than random positive values)

bq. You are officially knighted as a bit-fiddler champ http://goo.gl/oYKqQC

Thank you Dawid, I'm honored. :)

> Minor optimizations to the encoding of numerics in stored fields
> ----------------------------------------------------------------
>
>                 Key: LUCENE-6086
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6086
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: LUCENE-6086.patch, LUCENE-6086.patch
>
>
> LUCENE-5914 explored minor optimizations for numeric encoding in stored 
> fields, I think we should try to push them to the default format.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to