Changeset 7e6a92a


Ignore:
Timestamp:
Jun 8, 2019 1:14:14 PM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2c97dc2
Parents:
46ad48d
Message:

NetDB: Faster startup for non-Android too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/PersistentDataStore.java

    r46ad48d r7e6a92a  
    442442                    if (key != null && !isKnown(key)) {
    443443                        (new ReadRouterJob(file, key)).runJob();
    444                         if (i++ == 150 && SystemVersion.isAndroid() && !_initialized) {
     444                        if (i++ == 150 && SystemVersion.isSlow() && !_initialized) {
    445445                            // Can take 2 minutes to load them all on Android,
    446446                            // after we have already built expl. tunnels.
    447447                            // This is enough to let i2ptunnel get started.
    448448                            // Do not set _initialized yet so we don't start rescanning.
     449                            _setNetDbReady = true;
     450                            _context.router().setNetDbReady();
     451                        } else if (i == 500 && !_setNetDbReady) {
     452                            // do this for faster systems also at 500
    449453                            _setNetDbReady = true;
    450454                            _context.router().setNetDbReady();
Note: See TracChangeset for help on using the changeset viewer.