java-faker icon indicating copy to clipboard operation
java-faker copied to clipboard

Performance Improvement by caching values

Open bubuntux opened this issue 3 years ago • 3 comments

when faker is used to return consistent values based on a seed values there is a big performance issue since the yml files are re-read every time, caching the values per local prevent this issue.

after this fix the tests run significantly faster for comparative the tests in this project take ~50seconds, after this fix, tests went down to ~13seconds the gain are significantly better in bigger projects when this library is being used

bubuntux avatar Nov 15 '21 19:11 bubuntux

@codingricky @LC24 hey there, can you guys can take a look at these changes?

bubuntux avatar Mar 09 '22 22:03 bubuntux

@bubuntux this project is dead, but these changes have already been incorporated in datafaker version 1.2.0, which is currently on maven central

bodiam avatar Mar 10 '22 00:03 bodiam

@bodiam thanks for the heads up i'll take a look

bubuntux avatar Mar 10 '22 01:03 bubuntux