mirror of https://github.com/apache/lucene.git
Change Similarity to use SmallFloat for norm encoding
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@349073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
729175f73a
commit
208760307f
|
@ -356,6 +356,11 @@ Optimizations
|
|||
and sorting the first time on a field.
|
||||
(Yonik Seeley, LUCENE-454)
|
||||
|
||||
11. Optimized and generalized 32 bit floating point to byte
|
||||
(custom 8 bit floating point) conversions. Increased the speed of
|
||||
Similarity.encodeNorm() anywhere from 10% to 250%, depending on the JVM.
|
||||
(Yonik Seeley, LUCENE-467)
|
||||
|
||||
Infrastructure
|
||||
|
||||
1. Lucene's source code repository has converted from CVS to
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.lucene.util;
|
|||
* @author yonik
|
||||
* @version $Id$
|
||||
*/
|
||||
class SmallFloat {
|
||||
public class SmallFloat {
|
||||
|
||||
/** Converts a 32 bit float to an 8 bit float.
|
||||
* <br>Values less than zero are all mapped to zero.
|
||||
|
|
Loading…
Reference in New Issue