[postgis-users] LWGEOM_IN Function - Small performance inprovment.

Ralph Mason ralph.mason at telogis.com
Mon Jul 18 21:17:02 PDT 2005


Was just having a look at the latest 1.0.2 version.

Noticed some unused code


    //determine if its WKB or WKT

    semicolonLoc = strchr(str,';');
    if (semicolonLoc == NULL)
    {
        start=str[0];
    }
    else
    {
        start=semicolonLoc[1]; // one in
    }



Start is never used, so I guess that strchr is wasted here. 

Regards
Ralph




More information about the postgis-users mailing list