Skip to content

Asymptotically faster divmod and str(long) #47701

@fredrikj

Description

@fredrikj
mannequin
BPO 3451
Nosy @tim-one, @mdickinson, @vstinner, @cfbolz, @ericvsmith, @IIIIllllIIIIllllIIIIllllIIIIllllIIIIll, @serhiy-storchaka
Files
  • div.py: python implementation of Newton division
  • div_timings.txt: Comparison of performance between builtin and Newton-based divmod and str
  • fast_div.py: Fast recursive division
  • diff: division with Burnikel , Ziegler algorithm
  • longobject2.diff
  • longformat.diff: str(n) recursive algorithm
  • longformat_BZ.diff: str(n) and BZ division algorithm
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-04-13.15:47:42.644>
    created_at = <Date 2008-07-27.01:11:04.477>
    labels = ['interpreter-core', 'performance']
    title = 'Asymptotically faster divmod and str(long)'
    updated_at = <Date 2022-01-30.01:41:10.989>
    user = 'https://bugs.python.org/fredrikj'

    bugs.python.org fields:

    activity = <Date 2022-01-30.01:41:10.989>
    actor = 'tim.peters'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-04-13.15:47:42.644>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2008-07-27.01:11:04.477>
    creator = 'fredrikj'
    dependencies = []
    files = ['10990', '10991', '11060', '11423', '11773', '13496', '13497']
    hgrepos = []
    issue_num = 3451
    keywords = ['patch']
    message_count = 26.0
    messages = ['70309', '70313', '70316', '70325', '70326', '70702', '70704', '70719', '70720', '70776', '71010', '72772', '73698', '74679', '84105', '84702', '84704', '103028', '190407', '221270', '390940', '390966', '390968', '390971', '390972', '412121']
    nosy_count = 10.0
    nosy_names = ['tim.peters', 'mark.dickinson', 'pernici', 'vstinner', 'Carl.Friedrich.Bolz', 'eric.smith', 'fredrikj', 'steve21', 'xuanji', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue3451'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions