On Tue, Jul 30, 2013 at 8:00 AM, Andrew Beal <[email protected]> wrote: > Hi All, > > Is there a way to minimize function calls internal to SQLite? At some > points of execution, I have measured as much as 35 deep nested function > calls. Since we are running on an embedded system, we don't support such a > deep call table. >
Wow. What embedded system is it that doesn't support a call stack that is *only* 35 levels deep? Many embedded systems are concerned about stack space usage. At one point, SQLite would run comfortably with a 2KB stack. I haven't measured the stack usage lately and suspect it has grown a little. But there is the SQLITE_SMALL_STACK compile-time option which attempts to reduce the stack space requirement. (The downside of SQLITE_SMALL_STACK is that it might require more malloc() calls, which can slow down performance some.) -- D. Richard Hipp [email protected] _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

