Giter VIP home page Giter VIP logo

go-common-pkg-exmaples's Introduction

Go common package examples

Minimum Go version is 1.16

常见优化手段:

  • 提高复用性,将通用的代码抽象出来,减少重复开发。
  • 池化,对象可以池化,减少内存分配;协程可以池化,避免无限制创建协程打满内存。
  • 并行化,在合理创建协程数量的前提下,把互不依赖的部分并行处理,减少整体的耗时。
  • 异步化,把不需要关心实时结果的请求,用异步的方式处理,不用一直等待结果返回。
  • 算法优化,使用时间复杂度更低的算法。

go-common-pkg-exmaples's People

Contributors

chasespace avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.