using a custom memory allocator in TH3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

using a custom memory allocator in TH3

James K. Lowden
After stumbling on SQLite's description of its memory allocators, I
decided to write a one for testing that might be slow but is certainly
robust.[1]  I thought it might be interesting to hook it up to TH3, but
I don't understand how to do that.  

The instructions say:

1.  Generate the code
2.  Link to your favorite SQLite library
3.  Run

Where do I call

        sqlite3_config(SQLITE_CONFIG_MALLOC, ... )

as explained in https://www.sqlite.org/c3ref/config.html ?

--jkl

[1] https://github.com/jklowden/mmalloc
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users