GoogleChromeLabs / GoogleChromeLabs/jsbi

Karatsuba algorithm for bigint multiplication

Open
#46 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
962
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Hi,

I was wondering if a faster algorithm for bigint multiplication could be used for large bigints. The Karatsuba algorithm is relatively simple, so it wouldn't increase the code size by much while being significantly faster. I would love to contribute code for this. (Though I'm not sure what algorithm the project already uses!)

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating JSBI's bigint multiplication implementation and existing tests, then determine which algorithm is currently used and how large operands are benchmarked. Done means an agreed algorithm change supported by correctness tests and performance measurements.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.