diff --git a/src/ImageSharp/Configuration.cs b/src/ImageSharp/Configuration.cs index 31c67dd687..94584ff203 100644 --- a/src/ImageSharp/Configuration.cs +++ b/src/ImageSharp/Configuration.cs @@ -134,7 +134,7 @@ namespace SixLabors.ImageSharp /// /// /// It's possible to reduce allocator footprint by assigning a custom instance created with - /// , but note that since the default pooling + /// , but note that since the default pooling /// allocators are expensive, it is strictly recommended to use a single process-wide allocator. /// You can ensure this by altering the allocator of , or by implementing custom application logic that /// manages allocator lifetime. diff --git a/src/ImageSharp/Memory/Allocators/MemoryAllocator.cs b/src/ImageSharp/Memory/Allocators/MemoryAllocator.cs index 6649468dab..4df78d9d93 100644 --- a/src/ImageSharp/Memory/Allocators/MemoryAllocator.cs +++ b/src/ImageSharp/Memory/Allocators/MemoryAllocator.cs @@ -37,10 +37,10 @@ namespace SixLabors.ImageSharp.Memory /// /// Creates the default using the provided options. /// - /// The . + /// The . /// The . - public static MemoryAllocator Create(MemoryAllocatorSettings settings) => - new UniformUnmanagedMemoryPoolMemoryAllocator(settings.MaximumPoolSizeMegabytes); + public static MemoryAllocator Create(MemoryAllocatorOptions options) => + new UniformUnmanagedMemoryPoolMemoryAllocator(options.MaximumPoolSizeMegabytes); /// /// Allocates an , holding a of length . diff --git a/src/ImageSharp/Memory/Allocators/MemoryAllocatorSettings.cs b/src/ImageSharp/Memory/Allocators/MemoryAllocatorOptions.cs similarity index 95% rename from src/ImageSharp/Memory/Allocators/MemoryAllocatorSettings.cs rename to src/ImageSharp/Memory/Allocators/MemoryAllocatorOptions.cs index 01ab46c2a1..22a0410755 100644 --- a/src/ImageSharp/Memory/Allocators/MemoryAllocatorSettings.cs +++ b/src/ImageSharp/Memory/Allocators/MemoryAllocatorOptions.cs @@ -6,7 +6,7 @@ namespace SixLabors.ImageSharp.Memory /// /// Defines options for creating the default . /// - public struct MemoryAllocatorSettings + public struct MemoryAllocatorOptions { private int? maximumPoolSizeMegabytes; diff --git a/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs b/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs index e6c50ae345..26a90591ef 100644 --- a/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs +++ b/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs @@ -151,7 +151,7 @@ namespace SixLabors.ImageSharp.Tests.Memory.Allocators static void RunTest() { - var allocator = MemoryAllocator.Create(new MemoryAllocatorSettings() + var allocator = MemoryAllocator.Create(new MemoryAllocatorOptions() { MaximumPoolSizeMegabytes = 8 });