Changeset a3a092a


Ignore:
Timestamp:
Nov 1, 2015 7:31:22 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ef428d5
Parents:
787921a
Message:

Utils: Double IP lookup cache size (ticket #1700)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/Addresses.java

    r787921a ra3a092a  
    232232        if (ctx != null && ctx.isRouterContext()) {
    233233            long maxMemory = SystemVersion.getMaxMemory();
    234             long min = 128;
     234            long min = 256;
    235235            long max = 4096;
    236             // 512 nominal for 128 MB
    237             size = (int) Math.max(min, Math.min(max, 1 + (maxMemory / (256*1024))));
     236            // 1024 nominal for 128 MB
     237            size = (int) Math.max(min, Math.min(max, 1 + (maxMemory / (128*1024))));
    238238        } else {
    239239            size = 32;
Note: See TracChangeset for help on using the changeset viewer.