#28024: GEOSCoordSeq performance could be improved significantly by avoiding
superfluous checks
------------------------------------------------+------------------------
               Reporter:  Sergey Fedoseev       |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  GIS                   |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 For proof of concept I added reworked `tuple` version as `tuple_fast`
 property.

 {{{
 In [14]: ls = LineString([(x, x) for x in range(1000)])

 In [15]: %timeit ls.tuple
 10 loops, best of 3: 43.5 ms per loop

 In [16]: %timeit ls.tuple_fast
 10 loops, best of 3: 16.8 ms per loop
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28024>
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/053.c3689be0a85eb0dc8df6dc5e575cf5be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to