in reply to Copy source code?

I want to add / change the parameters to sieve_range() function by simply finding a .pl file for the subroutine and changing the code inside the file

If you want to make changes to the number or types of arguments that sieve_range() accepts, you'll have to make those changes in XS.xs and rebuild Math::Prime::Util.

The file 'sieve.c' contains a function named _sieve_range() which, AFAICS, is a separate function to sieve_range().
The _sieve_range() function seems to be a function that is private to 'sieve.c'.

I suggest contacting the Math::Prime::Util author regarding any changes you would like to see.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Copy source code?
by pvfki (Novice) on Jul 21, 2019 at 21:49 UTC
    I was hoping to manipulate it mostly because I am after the high performance of this particular function, as Laurent_R pointed out. I did write (with some help) my own sieving script to my liking, but it is really crude and slow performing. Dana Jacobsen (the author of most of these libraries) seems to be the person to contact, but if he isn't reachable, are there other people on this forum that are capable of making additions/changes to the libraries?
      I haven't heard form Dana for a while and, according to his homenode, he was last here 3 months ago.
      Have you tried emailing him at the address shown at https://metacpan.org/author/DANAJ ?

      Other than that, if you tell us exactly what you wish to change about Math::Prime::Util::sieve_range(), someone here might be able to provide you with the required changes to XS.xs (and any other affected files).

      Update: According to the Math::Prime::Util github repo Dana's latest commit was made less than a month ago, so I think there's a good chance that he's still active and contactable.

      Cheers,
      Rob