GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: `math.perm` is quadratic in the result size, 50 to 100 times slower than CPython for large results · Issue #1254 · oracle/graalpython Open Labels bugSomething isn't workingSomething isn't working DescriptionDescribe the bug
Operating systemmacOS CPU architectureARM64 GraalPy versionmaster a3009f9 (Python 3.13.14); also reproduced on 25.0.2 (Python 3.12.8) JDK versionNo response Context configurationNo response Steps to reproduceimport math, time t = time.time() n = math.perm(615913, 286885) print(n.bit_length(), round(time.time() - t, 1)) GraalPy master a3009f9: Expected behaviorCPython 3.13.14 (same on 3.12.13): Stack traceAdditional context
Root Cause
Fix SuggestionReplace the loop with the same recursive split; on JDK 21 it computes this case in 0.33 s with an identical result. ActivityMetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |