PyCQA / redbaron

Bottom-up approach to refactoring in python
http://redbaron.pycqa.org/
694 stars 74 forks source link

Add insert_multiple() method to accelerate insertion of multiple lines #170

Open sdh4 opened 6 years ago

sdh4 commented 6 years ago

Per https://github.com/PyCQA/redbaron/issues/149 accelerate inserting multiple lines at one time by only calling _synchronize() once. This patch adds a new method for inserting multiple lines in one steip, dramatically accelerating the insertion process