mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #848] [MERGED] Minor changes to reduce allocations #8530
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/848
Author: @Bond-009
Created: 2/9/2019
Status: ✅ Merged
Merged: 2/20/2019
Merged by: @joshuaboniface
Base:
master← Head:perf📝 Commits (10+)
64d5ec1Use HashSets for increased perf41fb1e5Tuple -> ValueTuple3e6819cDon't clone lists7722cb3Some Lists -> IEnumerable9dba930Warn faster for slow requestsda9418cUseless copy8d98885Less string allocations585b520Last bitsea446fdRevert back to netcoreapp2.13f13851Address comments📊 Changes
21 files changed (+301 additions, -302 deletions)
View changed files
📝
Emby.Server.Implementations/Data/BaseSqliteRepository.cs(+2 -25)📝
Emby.Server.Implementations/Data/SqliteItemRepository.cs(+139 -146)📝
Emby.Server.Implementations/HttpServer/HttpResultFactory.cs(+17 -17)📝
Emby.Server.Implementations/HttpServer/StreamWriter.cs(+2 -6)📝
Emby.Server.Implementations/Library/LibraryManager.cs(+21 -23)📝
Emby.Server.Implementations/Library/UserManager.cs(+2 -2)📝
Emby.Server.Implementations/LiveTv/LiveTvManager.cs(+1 -1)📝
Emby.Server.Implementations/Serialization/JsonSerializer.cs(+21 -0)📝
Jellyfin.Server/SocketSharp/WebSocketSharpRequest.cs(+32 -35)📝
MediaBrowser.Api/BaseApiService.cs(+23 -9)📝
MediaBrowser.Api/UserLibrary/ArtistsService.cs(+1 -1)📝
MediaBrowser.Api/UserLibrary/BaseItemsByNameService.cs(+2 -2)📝
MediaBrowser.Api/UserLibrary/BaseItemsRequest.cs(+3 -5)📝
MediaBrowser.Api/UserLibrary/GenresService.cs(+1 -1)📝
MediaBrowser.Api/UserLibrary/ItemsService.cs(+7 -10)📝
MediaBrowser.Api/UserLibrary/MusicGenresService.cs(+1 -1)📝
MediaBrowser.Api/UserLibrary/PersonsService.cs(+3 -3)📝
MediaBrowser.Api/UserLibrary/StudiosService.cs(+1 -1)📝
MediaBrowser.Controller/Library/ILibraryManager.cs(+7 -7)📝
MediaBrowser.Controller/Persistence/IItemRepository.cs(+7 -7)...and 1 more files
📄 Description
Reduces stress on the GC
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.