Some of these questions are quite specific so I doubt if the answer would help anyone but the OP
If you think that the post isn't going to be useful to other people, then you can reflect that opinion with a downvote.
If you can edit a post such that it will be useful to other people after you've finished editing it, then improving it is helpful, but if the post still isn't going to be useful even after your edit, you're just wasting your time and others', so don't edit such a post, just leave it.
they can just use improvement like: [...] more efficient code.
If you believe you have an alternate solution to a problem that you think is superior than an existing answer, you should post your new solution as a new answer, not edit someone else's answer to use the solution you think is better. If your answer ends up being a derived work of another answer, be sure to cite that other answer appropriately to indicate what is your original contribution and what is the work of that other author.
As to other changes, keep in mind that if you're going to edit an older post I'd hold yourself to a higher bar as far as how much the edit should improve the post. Also consider the value of the post (both before and after the edit). Editing a post that barely meets the minimum standards of acceptability and that not many people have found useful, and fixing a typo or a formatting problem, isn't adding a lot of value, while editing a canonical post that's frequently used as a reference is much more valuable, and can be worth the minor disruption of having other users ensure that the edit is appropriate.
Finally, as has been mentioned in comments, try not to make a large number of edits in a short period of time, particularly when editing old posts, as this ends up being much more disruptive to other users than having one or two posts edited at a time.