You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with current method like net.datafaker.transformations.JsonTransformer#generate(net.datafaker.transformations.Schema<IN,?>, int)
it generates the whole String and then returns it. As a result for bigger numbers it consumes larger amount of memory and e.g.
such test fails with OutOfMemory
The problem with current method like
net.datafaker.transformations.JsonTransformer#generate(net.datafaker.transformations.Schema<IN,?>, int)
it generates the whole
String
and then returns it. As a result for bigger numbers it consumes larger amount of memory and e.g.such test fails with OutOfMemory
There is not so much we can do about this method since anyway with such approach we need somehow to store that giant string value.
Another approach is instead of generation the final string value we could generate a stream of values and return it.
The text was updated successfully, but these errors were encountered: