[PR #3502] [MERGED] Use Array.Empty #9558

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/3502
Author: @barronpm
Created: 7/4/2020
Status: Merged
Merged: 7/5/2020
Merged by: @Bond-009

Base: masterHead: array-empty


📝 Commits (1)

📊 Changes

20 files changed (+33 additions, -27 deletions)

View changed files

📝 Emby.Dlna/Profiles/DefaultProfile.cs (+1 -1)
📝 Emby.Dlna/Profiles/DenonAvrProfile.cs (+1 -1)
📝 Emby.Dlna/Profiles/DirectTvProfile.cs (+1 -1)
📝 Emby.Dlna/Profiles/Foobar2000Profile.cs (+1 -1)
📝 Emby.Dlna/Profiles/MarantzProfile.cs (+1 -1)
📝 Emby.Dlna/Profiles/MediaMonkeyProfile.cs (+2 -1)
📝 Emby.Dlna/Profiles/SonyBlurayPlayer2013.cs (+2 -1)
📝 Emby.Dlna/Profiles/SonyBlurayPlayer2014.cs (+2 -1)
📝 Emby.Dlna/Profiles/SonyBlurayPlayer2015.cs (+2 -1)
📝 Emby.Dlna/Profiles/SonyBlurayPlayer2016.cs (+2 -1)
📝 MediaBrowser.Api/FilterService.cs (+1 -1)
📝 MediaBrowser.Controller/Entities/BaseItem.cs (+1 -1)
📝 MediaBrowser.Controller/Entities/Movies/BoxSet.cs (+1 -1)
📝 MediaBrowser.Controller/Library/TVUtils.cs (+1 -1)
📝 MediaBrowser.MediaEncoding/BdInfo/BdInfoExaminer.cs (+1 -1)
📝 MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs (+2 -2)
📝 MediaBrowser.Model/Dlna/MediaFormatProfileResolver.cs (+1 -1)
📝 MediaBrowser.Model/Dlna/StreamInfo.cs (+6 -6)
📝 MediaBrowser.Model/Querying/UpcomingEpisodesQuery.cs (+2 -1)
📝 MediaBrowser.Providers/Manager/MetadataService.cs (+2 -2)

📄 Description

Changes
Uses Array.Empty where applicable to reduce unnecessary allocations. Intentionally does not change ProviderManager, as I have another PR for that class.


🔄 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/3502 **Author:** [@barronpm](https://github.com/barronpm) **Created:** 7/4/2020 **Status:** ✅ Merged **Merged:** 7/5/2020 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `array-empty` --- ### 📝 Commits (1) - [`6d1b00d`](https://github.com/jellyfin/jellyfin/commit/6d1b00da648e01a15c0c0384c79d37c824358769) Use Array.Empty ### 📊 Changes **20 files changed** (+33 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Dlna/Profiles/DefaultProfile.cs` (+1 -1) 📝 `Emby.Dlna/Profiles/DenonAvrProfile.cs` (+1 -1) 📝 `Emby.Dlna/Profiles/DirectTvProfile.cs` (+1 -1) 📝 `Emby.Dlna/Profiles/Foobar2000Profile.cs` (+1 -1) 📝 `Emby.Dlna/Profiles/MarantzProfile.cs` (+1 -1) 📝 `Emby.Dlna/Profiles/MediaMonkeyProfile.cs` (+2 -1) 📝 `Emby.Dlna/Profiles/SonyBlurayPlayer2013.cs` (+2 -1) 📝 `Emby.Dlna/Profiles/SonyBlurayPlayer2014.cs` (+2 -1) 📝 `Emby.Dlna/Profiles/SonyBlurayPlayer2015.cs` (+2 -1) 📝 `Emby.Dlna/Profiles/SonyBlurayPlayer2016.cs` (+2 -1) 📝 `MediaBrowser.Api/FilterService.cs` (+1 -1) 📝 `MediaBrowser.Controller/Entities/BaseItem.cs` (+1 -1) 📝 `MediaBrowser.Controller/Entities/Movies/BoxSet.cs` (+1 -1) 📝 `MediaBrowser.Controller/Library/TVUtils.cs` (+1 -1) 📝 `MediaBrowser.MediaEncoding/BdInfo/BdInfoExaminer.cs` (+1 -1) 📝 `MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs` (+2 -2) 📝 `MediaBrowser.Model/Dlna/MediaFormatProfileResolver.cs` (+1 -1) 📝 `MediaBrowser.Model/Dlna/StreamInfo.cs` (+6 -6) 📝 `MediaBrowser.Model/Querying/UpcomingEpisodesQuery.cs` (+2 -1) 📝 `MediaBrowser.Providers/Manager/MetadataService.cs` (+2 -2) </details> ### 📄 Description **Changes** Uses Array.Empty where applicable to reduce unnecessary allocations. Intentionally does not change ProviderManager, as I have another PR for that class. --- <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 06:04:24 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9558