base dex, max cannonball accuracy Gknuckle, 91% atk speed. base dex, 35 with cannon ball and max cannon should have about 63% hit rate,
if you go with 96 dex hit rate should be max and atk speed should be 97% with gknuck and 96 dex.
go with 98 dex for 86% base atk speed and 100% with gknuck. hit rate should be max, could go with 100 dex for extra crit rate.
go with 102 dex if you want 87% base atk speed, probably max hit rate without the gknuck later on having already had 100 dex for crit, or 98 for speed break adding 2 dex for 1% crit and adding 4 total or 2 dex after 100 dex will land you at 102 dex with 87% base atk speed, so if your not using the gknuck, you hit 96 dex or so for about max hit rate without needing equips, and then now you added 2 dex for 1% crit at 100 and then 2 more for 1% more atk speed at 102 dex. 102 dex is better to add later if your not going to be using the gknuckle. 96dex give you around max hit rate.
so if you could get a set upgraded for hit rate then go with lower dex such as base dex for around 63% hit rate + set bonus to hit rate,
or 63 dex for 1st speed break and cookie cutter dex and have around 82% hit rate without bonuses from sets you will have 81% base atk speed, and with Gknuck that is 96% atk speed.