igogo-x86 / HexRaysPyTools

IDA Pro plugin which improves work with HexRays decompiler and helps in process of reconstruction structures and classes
1.42k stars 226 forks source link

clean up stored data in an idb #67

Open withmorten opened 3 years ago

withmorten commented 3 years ago

I noticed that my idb has been increased in size (i.e. 43MB -> 120MB) after using this plugin a bit - it's probably the "store_xrefs" default. There is a lot of empty space with some jsons inbetween.

I've disabled it, and would like to get rid of the unnecessary data - is there any way to do that? One off code hackily edited in is fine, it doesn't need to be a proper feature.

I'm already looking through the code myself, just wanted to ask if you had any idea.

Edit: I actually managed to do that but it only cleaned up a few KB. I'm assuming at this point that it's the swapped if/else that take up the most space (which would be fine)?