Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove excessive floating-point divides #4312

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Sep 3, 2024

  1. Remove excessive floating-point divides

    Loft the loop-invariant divide outside the hot loop, and/or
    invert the variable to turn FDIV into FMUL.
    heshpdx committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    41faf69 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Stefan Weil <sw@weilnetz.de>
    heshpdx and stweil committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7ab67f9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ff0a38d View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Replace FDIV with FMUL in hot loop.

    Shaves off 25% runtime on Ampere Altra running OCR using
    the tessdata_orig Russian language model with --oem 2.
    heshpdx committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7852c79 View commit details
    Browse the repository at this point in the history
  2. Update src/lstm/functions.h

    Conform to style.
    heshpdx committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a2a85b1 View commit details
    Browse the repository at this point in the history