Re: [Rd] qnbinom with small size is slow

2020-08-07 Thread Ben Bolker
   I can reproduce this on R Under development (unstable) (2020-07-24 r78910) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Pop!_OS 18.04 LTS   In my opinion this is worth reporting, but discussing it here first was a good idea.  Many more people read this list than watch the bug track

[Rd] qnbinom with small size is slow

2020-08-07 Thread Constantin Ahlmann-Eltze via R-devel
Hi all, I recently noticed that `qnbinom()` can take a long time to calculate a result if the `size` argument is very small. For example qnbinom(0.5, mu = 3, size = 1e-10) takes ~30 seconds on my computer. I used gdb to step through the qnbinom.c implementation and noticed that in line 106 (ht