Sign in

    simdstring

    SIMD-accelerated string utilities for Moonbit native backend

    string
    utilities
    native
    simd
    fast
    Download zip
    Version
    0.1.8
    License
    MIT
    Last updated
    last year
    Downloads
    60

    #simdstring 🚀

    SIMD-accelerated string utilities for Moonbit native backend.

    #📊 Benchmarks

    #contains_char Performance

    Metriccore/stringScalarSSE4.2AVX2
    Time (Ξs)684.6974.8810.168.24
    Throughput0.54 GB/s4.98 GB/s36.68 GB/s45.21 GB/s

    Test environment: AMD Ryzen 7 3750H, Moonbit native backend Run benchmark:

    moon run ./src/bench/contains_char --release --target native

    #🛠ïļ Installation

    Add as dependency:

    moon add MINGtoMING/simdstring

    Then include in your moon.pkg.json:

    { "import": [ "MINGtoMING/simdstring" ] }

    #📚 API Coverage

    #Current Implementation Status

    MethodAVX2SSE4.2Scalar
    contains_char✅✅✅
    containsâģâģâģ
    findâģâģâģ
    has_prefix✅✅✅
    has_suffix✅✅✅
    to_upperâģâģâģ
    to_lowerâģâģâģ

    ✅(Implemented) âģ(Planned)

    #📜 License

    MIT Licensed. See LICENSE for details.

    contains_char

    fn contains_char(str :
    StringView
    , cp : Char) -> Bool

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    ÂĐ 2026 mooncakes.io