Giter Club home page Giter Club logo

hikaricp's Introduction

HikariCP

使用SpringBoot整合HikariCP,并使用Mybatis操作数据库

HikariCP?

HiKariCP是数据库连接池的一个后起之秀,号称性能最好,可以完美地PK掉其他连接池,是一个高性能的JDBC连接池,基于BoneCP做了不少的改进和优化。 并且在SpringBoot2.0之后已经默认将数据库连接池选择为了HikariCP

HikariCP优势?

  1. 字节码精简 优化代码,直到编译后的字节码最少,这样,CPU缓存可以加载更多的程序代码;

  2. 优化代理和拦截器 减少代码,例如HikariCP的Statement proxy只有100行代码,只有BoneCP的十分之一;

  3. 自定义数组类型 (FastStatementList)代替ArrayList 避免每次get()调用都要进行range check,避免调用remove()时的从头到尾的扫描;

  4. 自定义集合类型 提高并发读写的效率

hikaricp's People

Contributors

zhyocean avatar

Stargazers

 avatar  avatar

Watchers

 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.