Performance optimization

This commit is contained in:
Liza 2024-07-04 20:51:24 +02:00
parent 65c0bec80e
commit 59c26c4f30
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,9 @@ internal sealed class ObjectTableHandler : IDisposable
} }
if (playerMappings.Count > 0) if (playerMappings.Count > 0)
_persistenceContext.HandleContentIdMapping(playerMappings); Task.Run(() => _persistenceContext.HandleContentIdMapping(playerMappings));
_logger.LogTrace("ObjectTable handling for {Count} players took {TimeMs}", playerMappings.Count, TimeSpan.FromMilliseconds(Environment.TickCount64 - now));
} }
public void Dispose() public void Dispose()

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2"> <Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup> <PropertyGroup>
<Version>4.0</Version> <Version>4.1</Version>
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages> <SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<OutputPath Condition="'$(Configuration)' != 'EF'">dist</OutputPath> <OutputPath Condition="'$(Configuration)' != 'EF'">dist</OutputPath>