#25762: Optimize numberformat.format
--------------------------------------+--------------------
Reporter: jaap3 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Utilities | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
`numberformat.format` is used a lot by Django and in most cases it's
called with a number. Yet the current implementation is pretty much built
for strings.
I've refactored the function to be up to 4x faster on my machine (and in
the worst case it performs roughly the same). Attached is the benchmark
script I've used.
--
Ticket URL: <https://code.djangoproject.com/ticket/25762>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.bee5643a83373a6602b24f94622e220e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.