Optimization of Fundamental Operations

Open
#1,489 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Active
Tech stack
cpp
Domain
performance

Research direction

Start by profiling the basic operations named in the issue—comparisons, add, sub, mul, div, and mod—with flame graphs, paying particular attention to the rounding stage. Review the existing Granlund-Montgomery reciprocal multiplication and define done as measurable speedups against the current implementation and industry standards.

Written by the indexing model from the issue text.

Description

optimization

@ibmibmibm I think you've hit parts of the basic ops (comparisons, add, sub, mul, div, mod) in some of your recent PRs, but I think it may be worth studying these again since you've shown speedups. It's been a while since I made flame graphs, but previously the rounding stage was dominant in cost. You'll see I added Granlund-Montgomery reciprocal multiplication in the last release to try and speed things up. If you have time or interest I think this would be a good use of time so we can grow the lead vs industry standards.

Dominant language
C++
Stars
67
Forks
16
Avg merge
1d 15h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/decimal

All issues in boostorg/decimal

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.