Jongware's method works very well.
Object > Path > Simplify
Check the straight lines box
If the curve does not fit the original at high zoom:
Object > Path > Add Anchor Points
Do this until it matches the original shape in Simplify
I learned this on a very large detailed piece with hundreds of thousands of anchor points. It is important to use the minimum number of anchor points necessary. I grouped each shape separately to ensure this.
Note: it is best if your line weight is set to 0.
If when you expor
...