Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: New packages: python3-cysignals-1.11.2, python3-cypari2-2.1.2, python3-pplpy-0.8.7, python3-fpylll-0.5.6, python3-primecountpy-0.1.0
Date: Tue, 18 Jan 2022 20:01:05 +0100	[thread overview]
Message-ID: <20220118190105.sX0CzbptMg8Ij_MSee44gGXNYl8qwVNAEYtaV2mPOLo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35088@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/35088#issuecomment-1015730513

Comment:
I added one more package here, which also depends on cysignals. This is the only one I had to `make_check=no` because it is a pain to check before installing, but it's mostly a trivial wrapper package for `primecount`. A simple after-installation test:
```
$ time python -c 'import primecountpy; print(primecountpy.prime_pi(10**18))'
24739954287740860

real    0m3.885s
user    4m0.882s
sys     0m0.829s
```
If one needs to go farther, use `prime_pi_128`:
```
$ time python -c 'import primecountpy; print(primecountpy.prime_pi_128(10**19))'
234057667276344607

real    0m16.092s
user    18m0.676s
sys     0m1.086s
$ time python -c 'import primecountpy; print(primecountpy.prime_pi_128(10**20))'
2220819602560918840

real    1m3.085s
user    73m49.885s
sys     0m1.908s
```
Should be O(n<sup>2/3</sup>) and take good advantage of threads.

  parent reply	other threads:[~2022-01-18 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17  5:05 [PR PATCH] New packages: python3-cysignals-1.11.2, python3-cypari2-2.1.2, python3-pplpy-0.8.7, python3-fpylll-0.5.6 tornaria
2022-01-18 18:43 ` [PR PATCH] [Updated] " tornaria
2022-01-18 19:01 ` tornaria [this message]
2022-01-19 14:58 ` [PR PATCH] [Merged]: New packages: python3-cysignals-1.11.2, python3-cypari2-2.1.2, python3-pplpy-0.8.7, python3-fpylll-0.5.6, python3-primecountpy-0.1.0 leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118190105.sX0CzbptMg8Ij_MSee44gGXNYl8qwVNAEYtaV2mPOLo@z \
    --to=tornaria@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).