to give you a example: i recently buy a 97´ cr 80 RB... the bike is very fast with a lot of power, but i´m a slow guy... most of the times i rode in low rpm...
i´m rebuilding all the bike since the previous owner don´t like maintenance or repairs, but it was very cheap... when i was measuring the top end i note that the engine has a american head (47mm instead of 46 for europe), so i make a new base gasket 0.3 mm thinner with gasket paper since the head has more volume and a greater squish clearance (1,0mm + 0.3mm from the deck height) to increase the compression ratio...
but more compression ratio is not always a good thing, if i ride fast with the throttle open a lot of time like desert actually i would decrease the CR:
1: because the bike wouldn´t need more low end
2: the increase of pressure will increase the internal temp. making it more prone to knocking
3: the increases in temp will increase wear
4: etc...
all of this is based in the principle that only the CR changes, nothing else...
the formulas you read about only calculates the actual CR, not the ideal... that is only found by testing, or experience