mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #6054] [MERGED] Reduce some allocations #10795
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/6054
Author: @cvium
Created: 5/16/2021
Status: ✅ Merged
Merged: 5/20/2021
Merged by: @Bond-009
Base:
master← Head:allocationz_2_extreme_db_plsdonthurtme📝 Commits (9)
1b49435Reduce some allocationseaafbddRemove some leftover junk from a project that isn't in the sln415e8fcForward652909eUpdate Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.csbe4aeb5Rename SQL extension methods81ac118Fix ArrayIndexOutOfBounds1027792Review changes7e6a45cReview changese0f7937Fix build📊 Changes
18 files changed (+729 additions, -544 deletions)
View changed files
📝
Emby.Naming/Audio/AudioFileParser.cs(+3 -3)📝
Emby.Naming/Emby.Naming.csproj(+3 -2)📝
Emby.Naming/Video/ExtraResolver.cs(+49 -46)📝
Emby.Naming/Video/VideoResolver.cs(+10 -12)📝
Emby.Server.Implementations/Data/BaseSqliteRepository.cs(+2 -4)📝
Emby.Server.Implementations/Data/SqliteExtensions.cs(+101 -10)📝
Emby.Server.Implementations/Data/SqliteItemRepository.cs(+230 -340)📝
Emby.Server.Implementations/Data/SqliteUserDataRepository.cs(+8 -8)📝
Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs(+18 -18)📝
Emby.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs(+8 -8)📝
Emby.Server.Implementations/Security/AuthenticationRepository.cs(+20 -21)📝
Jellyfin.sln(+7 -0)➕
MediaBrowser.Common/Extensions/EnumerableExtensions.cs(+51 -0)📝
MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs(+14 -3)📝
MediaBrowser.Providers/MediaInfo/SubtitleResolver.cs(+67 -68)📝
tests/Jellyfin.Naming.Tests/Video/VideoResolverTests.cs(+5 -1)➕
tests/Jellyfin.Providers.Tests/Jellyfin.Providers.Tests.csproj(+37 -0)➕
tests/Jellyfin.Providers.Tests/MediaInfo/SubtitleResolverTests.cs(+96 -0)📄 Description
Changes
Reduce allocations by using spans and by reducing the number of times a column value is retrieved (effectively halved).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.