Ctrl+L chat applied to the entire script take minutes to implement

I am on windows. Script is about 100 lines in python. I use the chat with ctrl+L and modifying a couple of functions (when I select it to apply to the entire document) it takes minutes to change a couple of lines. I see that it checks all the lines from top to bottom but it is just ridicolously slow. Using pro trial version with sonnet3.5