tickets: 25762
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25762 | 2015-11-16 13:29:33 | 2022-02-03 08:36:50 | 2022-03-06 04:42:09.343885 | Accepted | assigned | Utilities | Cleanup/optimization | Normal | dev | Optimize numberformat.format | `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. | tim-mccurrach | jaap3 | 0 | 1 | 1 | 0 | 0 | 0 |