cscorley / whatthepatch

What The Patch!? -- A Python patch parsing library
MIT License
64 stars 24 forks source link

Code optimization #46

Closed babenek closed 1 year ago

babenek commented 2 years ago

fixes #48 There is a bottleneck for huge git patches (more than 1M lines). Try to run the added unit test - it requires a lot of time. It takes a lot less time with the optimization.

babenek commented 2 years ago

PS: tested on linux only. Python 3.9

babenek commented 2 years ago

@cscorley , pls, check whether python3.5 and 3.6 is available for your repo (actions)

cscorley commented 1 year ago

Is this approach easily applicable for the other types of patch parsers?

babenek commented 1 year ago

Is this approach easily applicable for the other types of patch parsers?

It seems, a bit different approach https://github.com/babenek/whatthepatch/tree/tmp. I do not know very well the file types.

cscorley commented 1 year ago

Thanks!