brettvanderwerff / Flaskerizer

Automatically create Flask apps from Bootstrap templates
GNU General Public License v2.0
126 stars 15 forks source link

code optimization needed for parse links and other methods. #85

Open brettvanderwerff opened 6 years ago

brettvanderwerff commented 6 years ago

I tried to optimize some of the program by implementing multiprocessing with the parse_links method, but on some templates the program still takes several minutes to run. Any work on code optimization is very welcome. If there are any more places to implement paralellization we can try that too, but I am sure there are some easy code fixes that I missed when writing flaskerizer that could help speed up the program without resorting to fancier techniques. Like maybe the use of more efficient data structures or eliminating uneeded steps, that sort of thing.

bovem commented 6 years ago

@brettvanderwerff I would like to work on this one as I have made changes to parse_links in past and I would like to try using break statements after conditions so that for loop dosen't run for too long.

brettvanderwerff commented 6 years ago

@avnish98 Sounds great it's all yours!