Changeset 75d8672 for router


Ignore:
Timestamp:
Jul 31, 2018 2:26:03 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
726d2f4
Parents:
5c3e4087
Message:

SSU: Pull call out of loop for efficiency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/PeerState.java

    r5c3e4087 r75d8672  
    19281928            return false;
    19291929       
     1930        final long messageId = bitfield.getMessageId();
    19301931        if (bitfield.receivedComplete()) {
    1931             return acked(bitfield.getMessageId());
     1932            return acked(messageId);
    19321933        }
    19331934   
     
    19371938            for (Iterator<OutboundMessageState> iter = _outboundMessages.iterator(); iter.hasNext(); ) {
    19381939                state = iter.next();
    1939                 if (state.getMessageId() == bitfield.getMessageId()) {
     1940                if (state.getMessageId() == messageId) {
    19401941                    boolean complete = state.acked(bitfield);
    19411942                    if (complete) {
Note: See TracChangeset for help on using the changeset viewer.