[unixODBC-dev] for with strlen

Oren Nechushtan oren at forescout.com
Mon Sep 12 07:53:55 BST 2005


> Hi,
> Several sources for the PostgreSQL(libodbcpsql.so) and Postgre7.3  libraries use non efficient code as shown below.
> 
> ...
> for ( i = 0; i < strlen( zcstr ); i ++ )
> ...
> 
> generating non optimal calls.
> Attached is a patch that solves this assuming the string does not change during the call.> >  <<unixODBC-2.2.11-strlen.patch>> 
> 
> Thanks,
> Oren.
> 
> P.S.
> The solution was suggested by <comay at forescout.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unixODBC-2.2.11-strlen.patch
Type: application/octet-stream
Size: 7469 bytes
Desc: unixODBC-2.2.11-strlen.patch
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20050912/29946caf/attachment.obj>


More information about the unixODBC-dev mailing list