Changeset fb74f41 for router


Ignore:
Timestamp:
Jan 27, 2017 1:41:06 AM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
bd1354f
Parents:
5db89d8
Message:

javadoc fixes part 9 (ticket #1894)

Location:
router/java/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/util/DecayingHashSet.java

    r5db89d8 rfb74f41  
    4444 * for almost all bandwidth classes.
    4545 *
    46  * This has a strictly zero false positive rate for <= 8 byte keys.
     46 * This has a strictly zero false positive rate for &lt;= 8 byte keys.
    4747 * For larger keys, it is 1 / (2**64) ~= 5E-20, which is better than
    4848 * DBF for any entry count greater than about 14K.
     
    209209   
    210210    /**
    211      *  This saves the data as-is if the length is <= 8 bytes,
     211     *  This saves the data as-is if the length is &lt;= 8 bytes,
    212212     *  otherwise it stores an 8-byte hash.
    213213     *  Hash function is from DataHelper, modded to get
  • router/java/src/org/xlattice/crypto/filters/KeySelector.java

    r5db89d8 rfb74f41  
    6262     * The max for 32-byte keys is m=23 and k=11.
    6363     * The precise restriction appears to be:
    64      * ((5k + (k-1)(m-5)) / 8) + 2 < keySizeInBytes
     64     * ((5k + (k-1)(m-5)) / 8) + 2 &lt; keySizeInBytes
    6565     *
    6666     * It isn't clear how to fix this.
Note: See TracChangeset for help on using the changeset viewer.