Coder Social home page Coder Social logo

garyon's People

Contributors

rekkonnect avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

garyon's Issues

Optimize generic conversion functions to be optimal compared to their non-generic variants

Currently, due to unknown reasons, running on an AMD Ryzen 7 1800X CPU, the benchmarks have concluded the following results:

overview 8 png

These results indicate that the functions that use Vector128 and downcast the values into smaller sized values (such as Int64 to Int32, Int16 to Byte, etc.) are less performant than their non-generic variants.

Furthermore, any Vector128 functions related to converting from/to Double are at risk of being even less optimal than the manual unoptimized conversion. The same applies to Vector256 functions that convert into Int64, however are quite more performant than the ones converting from/to Double.

There might need be inspection of this, as it could be processor-specific. More benchmark runs would need to be performed for validation of this hypothesis.

Polish SIMD operations and modernize into usage of Spans

SIMD operations have been under the umbrella of an incomplete API, and they should eventually be at least polished for the rest of the package to be cleanly usable. Pointer-related APIs should be kept in favor of older target frameworks (see #11), while Spans will be recommended for newer ones.

Target older frameworks

Older frameworks suffer from the lack of certain APIs, so there must be carefully defined conditions for building

  • .NET Framework
    • 4.5
    • 4.6.1
    • 4.7.2
    • 4.8
  • .NET Standard
    • 2.0
    • 2.1
  • .NET Core
    • 3.1

Rename SIMD-related array conversion helper functions

Most functions named as "Store" perform a hidden conversion which is not indicated in the function names, in contrast to the intrinsics' function names which are trying to be as elaborate as possible. They should be renamed to "ConvertStore" to indicate that functionality.

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.