[PR #1981] [MERGED] Increase garbage collection on ios #14506

Closed
opened 2026-08-05 03:05:46 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1981
Author: @pascal-fischer
Created: 5/14/2024
Status: Merged
Merged: 5/17/2024
Merged by: @pascal-fischer

Base: mainHead: fix/increase-garbage-collection-on-ios


📝 Commits (3)

  • 7875186 increase garbage collection on ios
  • 77caba5 do all garbage collection only on ios
  • fb9c992 fix condition

📊 Changes

2 files changed (+7 additions, -0 deletions)

View changed files

📝 client/internal/connect.go (+3 -0)
📝 client/internal/peer/conn.go (+4 -0)

📄 Description

Describe your changes

The iOS app only allows to connect to a limited number of peers before it reaches its memory limits (currently 50MB for the network extension). This PR is the first step in optimizing the memory usage for iOS by increasing the garbage collection.

https://github.com/netbirdio/netbird/issues/1899#issuecomment-2109235977

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1981 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 5/14/2024 **Status:** ✅ Merged **Merged:** 5/17/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `fix/increase-garbage-collection-on-ios` --- ### 📝 Commits (3) - [`7875186`](https://github.com/netbirdio/netbird/commit/7875186ea7e0a3dbf0aaeff8bdb158a4c0cef30b) increase garbage collection on ios - [`77caba5`](https://github.com/netbirdio/netbird/commit/77caba5697b574d86aa58e3953e6548d511fea57) do all garbage collection only on ios - [`fb9c992`](https://github.com/netbirdio/netbird/commit/fb9c99225abb0ceaca36ff14de48a417b263ba4e) fix condition ### 📊 Changes **2 files changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+3 -0) 📝 `client/internal/peer/conn.go` (+4 -0) </details> ### 📄 Description ## Describe your changes The iOS app only allows to connect to a limited number of peers before it reaches its memory limits (currently 50MB for the network extension). This PR is the first step in optimizing the memory usage for iOS by increasing the garbage collection. ## Issue ticket number and link https://github.com/netbirdio/netbird/issues/1899#issuecomment-2109235977 ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:05:46 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14506