I'd give more details, but then I'd wind up in unofficial NDA territory, which wouldn't be good.

I know one function gets called up about 20 000 times and another nearly 100 000 times, I should probably focus on those

Anyone know how you can you profile your code using cmake ?