Code Monkey home page Code Monkey logo

class.helper's People

Contributors

bitofsky avatar

Watchers

 avatar  avatar

class.helper's Issues

arguments hashing

현재 arguments를 JSON.stringify 로 변환 후 MD5 해싱하는데 병목이 예상됨.
NodeJS의 crypto는 openssl 기반이므로 당연히 MD5 역시 cpu accelerator 로 Pure JS MD5 보다 속도가 향상된 상태라고 예상되므로 그냥 썼는데.. 정확한 측정을 위한 bench 가 필요..

또한 해싱이 가장 빠르다고 주장하는 xxHash 로 변경할 경우는..?
https://cyan4973.github.io/xxHash/

NodeJS용 xxHash 모듈은 현재 Cpp로 빌드된 xxhash와 pure js로 만들어진 xxhashjs 두종류가 있는듯..
xxhash : https://github.com/mscdex/node-xxhash
xxhashjs : https://github.com/pierrec/js-xxhash

상식적으론 xxhash가 빠를것 같지만 별 차이 없다는 벤치가 존재..
https://www.bucyou.net/blog/category/javascript/node-js

xxhash vs md5가 논리적으로 xxhash가 빠르다 하더라도 CPU 가속을 받느냐에 따라 뒤집힐 가능성도 있을듯..

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.