On Wed, Oct 21, 2009 at 3:09 AM, Venkat Iyer <[email protected]> wrote:

A tiny optimization suggestion:

 Blob line; while( db_step(&q)==SQLITE_ROW ){
> ... as before...
>
}

blob_reset(&line);


i believe that will avoid re-allocating the buffer string on each loop
iteration (it will only need to allocate on the first iteration and on
iterations where the output is larger than any previous iteration).

That is, if i remember the internals of Blob correctly.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to