GithubHelp home page GithubHelp logo

go-toy's Introduction

go-toy

🚀 Toy created by Golang

前言

刚开始学习go语言,看了基础的语法之后,就用一些小项目来练手,我认为,学习一门技术的最快,理解最深的就是敲了

组成

1 并行外部排序

通过这个课程可以初步感受到go routine之间的通信组件channel的使用

实现了:

  1. 内部排序
  2. 外部排序
  3. 网络排序

充分利用了go routine的特点,对大数据集进行切分,分给不同的routine来进行处理,加速完成排序。

对于大数据集的排序,**就是利用外部排序+归并

2 k-v存储

参考了rosedb作者的mini-db,在理解了之后,写出来这个toy,一方面是为了练习golang,一方面是为了理解rosedb,给作者点个赞。 同时我补充了部分单元测试和benchmark测试,使得可以更好的理解这个项目

mini-db采用了LSM的模型来构建一个可以持久化数据的k-v存储,在内存中建立了key对应的value在数据文件中的索引,也就是在文件中的偏移量

参考&感谢

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.