I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
  1. Apr 05, 2024
  2. Mar 26, 2024
  3. Feb 14, 2024
  4. Feb 02, 2024
  5. Jan 15, 2024
  6. Jan 11, 2024
  7. Jan 02, 2024
  8. Dec 22, 2023
  9. Dec 19, 2023
  10. Dec 18, 2023
  11. Dec 15, 2023
  12. Dec 06, 2023
  13. Dec 05, 2023
  14. Nov 30, 2023
  15. Nov 21, 2023
  16. Nov 18, 2023
  17. Nov 16, 2023
  18. Nov 10, 2023
  19. Nov 02, 2023
  20. Oct 28, 2023
  21. Oct 24, 2023
  22. Oct 12, 2023
  23. Sep 29, 2023
  24. Sep 27, 2023
  25. Jun 29, 2023
  26. Jun 04, 2023
  27. Apr 12, 2023
  28. Mar 13, 2023
  29. Feb 16, 2023
  30. Feb 12, 2023
  31. Feb 08, 2023
  32. Feb 04, 2023
  33. Jan 30, 2023
    • zzz's avatar
      Tunnels: Refactor peer selection · 124ebe9f
      zzz authored
      by checking if a peer qualifies when adding, rather than
      iterating through the whole netdb to generate an exclusion list at the start.
      This was very inefficient and generated needless lookup storms via lookupBeforeDropping()
      Same idea for getClosetHopExclude()
      Goal is to never iterate through all the known routers, profiles, or connected peers
      to select peers for a single tunnel.
      Add ExcluderBase and 4 classes for various cases:
      Excluder, ClosestHopExcluder, IBGWExcluder, and OBEPExcluder.
      
      Change CSFI.getEstablished() from a Set to a List for efficiency
      Improve efficiency of selectActivePeersNotFailingPeers()
      by iterating through connected list rather than profiles.
      Do not add not-connected peers to exclude set,
      which would become huge for hidden routers.
      
      Change getExclude() to shouldExclude()
      The exclude set calls shouldExclude() in contains().
      Pass the exclude set to ProfileOrganizer.
      
      For client tunnels, do OBEP and IBGW checks at peer selection time,
      not afterwards in ConnectChecker, so it doesn't fail at the end in checkTunnel().
      
      Check closest hop when hidden.
      Fail-fast for inbound when no connected peers and hidden, do not fall back to non-connected peers.
      Should improve startup time for hidden routers.
      
      Use ArraySet for matches to save space
      Remove unused selectPeersLocallyUnreachable() and selectPeersRecentlyRejecting()
      
      No peer selection policy changes here.
      Unverified
      124ebe9f
  34. Jan 22, 2023
  35. Jan 21, 2023
  36. Jan 17, 2023
  37. Jan 12, 2023
  38. Jan 10, 2023
  39. Jan 08, 2023
Loading