Search Results for

    Show / Hide Table of Contents

    Enum BTreeLockMode

    Available BTree lock modes.

    Namespace: Tenray.ZoneTree.Collections.BTree.Lock
    Assembly: ZoneTree.dll
    Syntax
    public enum BTreeLockMode
    Remarks

    The 3M shuffled parallel inserts and reads test results per BTree lock mode. The best lock mode might change depend on your hardware, data, key length etc.

    Method Mean Error Min Max Median Gen 0 Gen 1 Gen 2 Allocated
    TopLevelMonitor 4.318 s NA 4.318 s 4.318 s 4.318 s 12000.0000 7000.0000 2000.0000 71 MB
    TopLevelReaderWriter 5.811 s NA 5.811 s 5.811 s 5.811 s 10000.0000 5000.0000 - 71 MB
    NodeLevelMonitor 2.067 s NA 2.067 s 2.067 s 2.067 s 12000.0000 7000.0000 2000.0000 71 MB
    NodeLevelReaderWriter 3.608 s NA 3.608 s 3.608 s 3.608 s 10000.0000 5000.0000 - 74 MB

    Fields

    Name Description
    NoLock

    There is no locking at all. This mode is not thread-safe. Use it only if you are going to insert and read from single thread.

    NodeLevelMonitor

    Nodel level monitor lock.

    NodeLevelReaderWriter

    Node level reader-writer lock.

    TopLevelMonitor

    Top level monitor lock.

    TopLevelReaderWriter

    Top level reader-writer lock.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io