type_val: cache DB info as a speed up
commit7a9666c48f9551446380f3d24d6f91b512b22e3d
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jan 2018 21:59:57 +0000 (9 00:59 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jan 2018 22:11:26 +0000 (9 01:11 +0300)
tree159e09a92656ac57b6b570944d4b0e1888900d3b
parent9e15f16aaa5a7a2fae1f43191fbdafbf9274df4b
type_val: cache DB info as a speed up

It turns out we look up the type_val in the DB a lot so caching this is
quite a big speedup.  SQLite3 doesn't offer query caching which is
disappointing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_type_val.c