Giter VIP home page Giter VIP logo

Comments (5)

John-K avatar John-K commented on August 14, 2024

Did some quick profiling:
6.31:

(pprof) top
Total: 24998 samples
   19005  76.0%  76.0%    23452  93.8% bn_mon_muladd_dig
    4132  16.5%  92.6%     4132  16.5% bn_sub_1
     512   2.0%  94.6%    24089  96.4% bn_mon_mul

6.61:

(pprof) top
Total: 499 samples
     133  26.7%  26.7%      160  32.1% bn_mon_muladd_dig
      98  19.6%  46.3%       98  19.6% read_bit
      44   8.8%  55.1%       44   8.8% rijndaelEncrypt

So, 2x the magnitude of bignum operations.

I bet something weird is going on with how we enumerate files causing us to visit files multiple times? Might need to instrument things to figure it out.

To reproduce:

  • link with -lprofile
  • run CPUPROFILE=631.pprof psardumper 631.PBP
  • view results pprof psardumper 631.pprof

from pspdecrypt.

artart78 avatar artart78 commented on August 14, 2024

bignum functions are only used for ECDSA checking IIRC, was ECDSA checking enabled for all modules in 6.3x but removed in 6.6x?

from pspdecrypt.

artart78 avatar artart78 commented on August 14, 2024

I tried commenting ecdsa_verify, and indeed it becomes a lot faster. It could probably be disabled by default since I doubt it's functional anyway.

from pspdecrypt.

John-K avatar John-K commented on August 14, 2024

Might be nice to add a flag to enable that behavior and have it disabled by default?

from pspdecrypt.

artart78 avatar artart78 commented on August 14, 2024

Yep, related to #13, I'm even considering disabling it for now as I doubt it works...

from pspdecrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.