On 10/24/16, Max Vlasov <max.vla...@gmail.com> wrote: > > One of the trick possible is to add additional zeroing out to the > global free handler, but this can probably introduce performance > penalties. > > Is there any other way to do this?
If you set up to use memsys5 at compile-time (https://www.sqlite.org/malloc.html#zero_malloc_memory_allocator) then after all use of SQLite has ended, you are left with a single big chunk of memory that can be zeroed. Memsys5 is also faster than your global system memory allocator (before the extra overhead of zeroing, at least). But on the other hand, you have to know the maximum amount of memory SQLite will want at the very beginning, and that memory will be used only by SQLite and not other parts of your application, so memory utilization is not as efficient. -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users