Giter Site home page Giter Site logo

Code optimization about dumb HOT 3 OPEN

kode54 avatar kode54 commented on July 17, 2024
Code optimization

from dumb.

Comments (3)

kode54 avatar kode54 commented on July 17, 2024

Pull requests are welcome. Please verify that all optimizations have the intended performance enhancing effects on various platforms before filing, though.

For instance, the conversion to integer fixed point is currently used only for the per-sample volume ramping, and may actually be slower on some systems. It was actually faster on the system I developed it on originally, an Athlon64 3200+. Perhaps all float is faster now?

from dumb.

 avatar commented on July 17, 2024

Thanks. I'll do some profiling to check if my modifications are worth. Floats are nearly as fast as ints, but with CPU pipelines you can sometimes perform some operations for free while you are doing other things, so actually it's possible that mixing types makes the algorithm faster

from dumb.

kode54 avatar kode54 commented on July 17, 2024

Incidentally, samples are only float because of the newer resampler. I could probably turn that mess into integer as well, since pure integer math is actually faster. Well, unless you or someone else wants to craft fully SIMD optimized mixing code. What happened with this, anyway?

from dumb.

Related Issues (20)

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.