Re: [sqlite] surprising behaviour: in-memory db allocs less than file db

2013-06-22 Thread Drake Wilson
Quoth Stephan Beal , on 2013-06-23 03:07:02 +0200: > file db: > ==16021== total heap usage: 856 allocs, 856 frees, 222,957 bytes allocated > > vs :memory: > ==16043== total heap usage: 832 allocs, 832 frees, 203,430 bytes allocated > > (Most of those allocs were done

[sqlite] surprising behaviour: in-memory db allocs less than file db

2013-06-22 Thread Stephan Beal
Hi, all, i just came across a curious behaviour and i'm interested to know what the reason for it is (it's not a bug): i have a very small test app with a tiny db (1 table, 2 records) where valgrind reports me using more memory (and more allocs) for a file-based db than the same :memory: db.