EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Class MemoryPool

    Provides a resource pool that enables reusing instances of arrays.

    Inheritance
    object
    MemoryPool
    Implements
    IMemoryPool
    IArrayPool<byte>
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: PoeShared.Services
    Assembly: PoeShared.dll
    Syntax
    public sealed class MemoryPool : IMemoryPool, IArrayPool<byte>
    Remarks

    Internally uses ConfigurableArrayPool, as the expectation is that it will be used for large objects only(e.g. image canvases) as in all other cases it would make more sense to use ArrayPool.Shared (TlsOverPerCoreLockedStacksArrayPool) as it is more performant

    Notes: TlsOverPerCoreLockedStacksArrayPool max array size is only 1MB, meaning that it does not work for large arrays, which is reasonable considering it uses threadlocal to store data

    https://medium.com/@epeshk/the-big-performance-difference-between-arraypools-in-net-b25c9fc5e31d

    Properties

    Name Description
    Shared

    Methods

    Name Description
    Rent(int)
    RentPinnedBuffer(int)
    Return(byte[])
    Return(char[])

    Extension Methods

    ReactiveObjectExtensions.Listen<TContext, TItem>(TContext, Expression<Func<TContext, IObservableList<TItem>>>)
    ReactiveObjectExtensions.Listen<TContext, TOut>(TContext, Expression<Func<TContext, TOut>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3, TOut4>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>, Expression<Func<TContext, TOut4>>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
    ObjectExtensions.Eval<T, TValue>(T, Func<T, TValue>)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    XDocumentExtensions.AddTo<T>(T, XContainer)
    ObjectExtensions.GetPropertyAccessor<TValue>(object, string)
    ObjectReflectionExtensions.GetPropertyTypeOrDefault(object, string)
    ObjectReflectionExtensions.GetPropertyValue<T>(object, string)
    ObjectReflectionExtensions.SetPropertyValue<T>(object, string, T)
    © Xab3r. All rights reserved.