[PR #13519] [CLOSED] Removed unneccessary array creation #13611

Closed
opened 2026-02-07 07:16:04 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13519
Author: @IkeVoodoo
Created: 2/7/2025
Status: Closed

Base: masterHead: ikevoodoo-optimize-libraryservice


📝 Commits (1)

  • f43866d Removed unneccessary array creation

📊 Changes

1 file changed (+8 additions, -7 deletions)

View changed files

📝 MediaBrowser.Api/Library/LibraryService.cs (+8 -7)

📄 Description

Changes

  1. Removed unnecessary array creation after Where().
  2. Replaced LINQ usage with a foreach loop as to avoid allocating a new IEnumerable instance.

Issues
Related to #1269


🔄 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/jellyfin/jellyfin/pull/13519 **Author:** [@IkeVoodoo](https://github.com/IkeVoodoo) **Created:** 2/7/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `ikevoodoo-optimize-libraryservice` --- ### 📝 Commits (1) - [`f43866d`](https://github.com/jellyfin/jellyfin/commit/f43866dcf1fa43913240dda466576ea3903f8b69) Removed unneccessary array creation ### 📊 Changes **1 file changed** (+8 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Api/Library/LibraryService.cs` (+8 -7) </details> ### 📄 Description **Changes** 1. Removed unnecessary array creation after `Where()`. 2. Replaced LINQ usage with a `foreach` loop as to avoid allocating a new `IEnumerable` instance. **Issues** Related to #1269 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:16:04 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13611