gintool / gin

GI in No Time - a Simple Microframework for Genetic Improvement
MIT License
43 stars 21 forks source link

Performance issue with the parsing of the method file #40

Closed GiovaniGuizzo closed 4 years ago

GiovaniGuizzo commented 4 years ago

There is a minor performance issue with the parsing of the method file. This block is not very efficient when we have thousands of test cases.

A HashSet instead of a List solves this problem. I tried to change it, but apparently the method index in this List is used in some classes. The refactoring would change the functionality of such classes, so I decided to create this issue instead.

If I end up fixing this issue, I'll commit the changes. Cheers, Giovani.

justynapt commented 4 years ago

Pull request accepted, closing. Thank you.