Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Christos Argyropoulos MD PhD
@ChristosArgyrop@mastodon.social  ·  activity timestamp 7 days ago

Sometimes one has to peek under the hood or inside the black box .

How I fixed the surprisingly slow speed of the percentile function in Perl Data Language in #Perl (no C)

https://chrisarg.github.io/Killing-It-with-PERL/2025/11/30/Faster-quantie-calculations-in-PDL.html

Background :
https://en.wikipedia.org/wiki/Quantile

Quantile - Wikipedia

Killing-It-with-PERL

Faster quantile calculations in the Perl Data Language(PDL)

I was writing a data intensive code in Perl relying heavily on PDL for some statitical calculations (estimation of percentile points in some very BIG vectors, e.g. 100k to 1B elements), when I noticed that PDL was taking a very (and unusually long!) time to produce results compared to my experience in Python. This happened irrespective of whether one used the pct or oddpct functions in PDL::Ufunc.
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login