GithubHelp home page GithubHelp logo

badger-rs's Introduction

https://laohanlinux.github.io

  • ๐Ÿ”ญ Iโ€™m currently working on Golang
  • ๐ŸŒฑ Iโ€™m currently learning Rustใ€Distribute Storage System
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on Blockchain/eraft/etcd-rs/badger-rs
  • ๐Ÿค” Iโ€™m looking for help with Rust/boltdb/BadgerDB
  • ๐Ÿ’ฌ Ask me about Golang/Rust/Distribute System

badger-rs's People

Contributors

laohanlinux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

elbow-jason

badger-rs's Issues

Optimize code with chatgpt

ChatGPT is NB๏ผŒSo next, I'm going to optimize the code with the help of ChatGPT

  • SkipList
    Use DoubleAlloc to store SkipList.Node has append only from start that avoid memory align layout(AtomicU64 at diff platform has diff align way, eg: M1 arm). Key and Value only append from end

merge_iter_random

rust cargo test -v y::merge_iterator::tests::merge_iter_random

Output:

` rust
running 1 test
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 176: Find the target, index: 1
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 176: Find the target, index: 1
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 176: Find the target, index: 0
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 194: Find a same value, k00002
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 194: Find a same value, k00002
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 176: Find the target, index: 0
01:12:29 ERROR ThreadId(02) badger_rs::y::merge_iterator: 176: Find the target, index: 0
test y::merge_iterator::tests::merge_iter_random ... FAILED

failures:

---- y::merge_iterator::tests::merge_iter_random stdout ----
thread 'y::merge_iterator::tests::merge_iter_random' panicked at src/y/merge_iterator.rs:459:17:
assertion left == right failed: k00018 not equal k00007
left: [107, 48, 48, 48, 49, 56]
right: [107, 48, 48, 48, 48, 55]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.