Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3871 closed enhancement (fixed)

Performance of lwgeom_cmp, avoid memcpy

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 2.4.1
Component: postgis Version: master
Keywords: Cc:

Description

The memcpy involved in moving the bits from the float4 coordinate representation to a int representation can be avoided with a type-punning union.

Change History (5)

comment:2 by pramsey, 7 years ago

In 15874:

Use type-pun to avoid memcpy in building morton key (References #3871)

comment:3 by pramsey, 7 years ago

Resolution: fixed
Status: newclosed

In 15875:

Use type-pun to avoid memcpy in building morton key (Closes #3871)
Fix from Komzpa at https://github.com/postgis/postgis/pull/144

comment:4 by pramsey, 7 years ago

In 15876:

Fix union issue (References #3871)

comment:5 by pramsey, 7 years ago

In 15877:

Fix union issue (References #3871)

Note: See TracTickets for help on using tickets.