Open Bug 1259064 Opened 9 years ago Updated 2 years ago

Consider reducing MP_DEFPREC to something lower than 64

Categories

(NSS :: Libraries, defect, P3)

Tracking

(firefox48 affected)

Tracking Status
firefox48 --- affected

People

(Reporter: ttaubert, Unassigned)

References

(Blocks 1 open bug)

Details

MP_DEFPREC's default value is currently 64, which means that whenever we use mp_init() we allocate mp_digit[64] which is 64 * 64 = 4096 bit. This seems way too much as a default allocation, we should maybe reduce it to half the size and just re-allocate whenever someone needs an RSA key >2048-bit. That won't be very fast anyway. I think some measurement and/or instrumentation wouldn't hurt here either.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.