[Django] #28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)

์กฐํšŒ์ˆ˜ 2ํšŒ
์ฝ์ง€ ์•Š์€ ์ฒซ ๋ฉ”์‹œ์ง€๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 2:56:1517. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
------------------------------------------------+------------------------
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 |
------------------------------------------------+------------------------
`GEOSGeometry.json` was using `OGRGeometry.json` prior to 1.9. That was
changed in #25141. Now GDAL is required (#26753) and I believe we should
restore previous `GEOSGeometry.json` implementation for performance
reasons:

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

In [68]: %timeit a = ls.json
10 loops, best of 3: 42.6 ms per loop

In [69]: %timeit a = ls.ogr.json
100 loops, best of 3: 3.75 ms per loop
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28020>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 2:56:2117. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

* status: new => assigned
* owner: nobody => Sergey Fedoseev


--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:1>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 3:01:5617. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Sergey Fedoseev:

Old description:

> `GEOSGeometry.json` was using `OGRGeometry.json` prior to 1.9. That was
> changed in #25141. Now GDAL is required (#26753) and I believe we should
> restore previous `GEOSGeometry.json` implementation for performance
> reasons:
>
> {{{
> In [67]: ls = LineString([(x, x) for x in range(1000)])
>
> In [68]: %timeit a = ls.json
> 10 loops, best of 3: 42.6 ms per loop
>
> In [69]: %timeit a = ls.ogr.json
> 100 loops, best of 3: 3.75 ms per loop
> }}}

New description:

`GEOSGeometry.json` was using `OGRGeometry.json` prior to 1.9. That was
changed in #25141. Now GDAL is required (#26753) and I believe we should
restore previous `GEOSGeometry.json` implementation for performance
reasons:

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

In [68]: %timeit ls.json


10 loops, best of 3: 42.6 ms per loop

In [69]: %timeit ls.ogr.json


100 loops, best of 3: 3.75 ms per loop
}}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:2>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 3:39:3217. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:3>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 4:37:4117. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/8297 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:4>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 8:00:4817. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:5>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 4. 5. ์˜ค์ „ 9:03:3317. 4. 5.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: closed
Component: GIS | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@โ€ฆ>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"12d0567aa5e82322543f0c0c126ba18c91a1e439" 12d0567a]:
{{{
#!CommitTicketReference repository=""
revision="12d0567aa5e82322543f0c0c126ba18c91a1e439"
Fixed #28020 -- Made GEOSGeometry.json use OGRGeometry.json for better
performance.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:6>

Django

์ฝ์ง€ ์•Š์Œ,
2017. 7. 12. ์˜คํ›„ 3:11:3117. 7. 12.
๋ฐ›๋Š”์‚ฌ๋žŒ django-...@googlegroups.com
#28020: make GEOSGeometry.json use OGRGeometry.json again (for performance reasons)
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: closed
Component: GIS | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@โ€ฆ>):

In [changeset:"815a0bb80de7bdbabe0d865e8f37fa7e9b64c095" 815a0bb8]:
{{{
#!CommitTicketReference repository=""
revision="815a0bb80de7bdbabe0d865e8f37fa7e9b64c095"
Refs #28020 -- Removed obsolete GeometryCollection.json.

Unused since 12d0567aa5e82322543f0c0c126ba18c91a1e439.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28020#comment:7>

์ „์ฒด๋‹ต์žฅ
์ž‘์„ฑ์ž์—๊ฒŒ ๋‹ต๊ธ€
์ „๋‹ฌ
์ƒˆ ๋ฉ”์‹œ์ง€ 0๊ฐœ