Recursively large parameters
See original GitHub issueThis is recursion.
https://github.com/m3dev/gokart/blob/master/gokart/task.py#L285-L303
self.to_str_params(only_significant=True)
append the result of the json serialization of the parameter.
As a result of repeated json serialization, we have the following in dependencies.
dependencies.append(self.to_str_params(only_significant=True))
\“params\”: {\“target\”: \“{\\\“type\\\”: \\\“task.Aggregation\\\”, \\\“params\\\”: {\\\“train\\\”: \\\”{\\\\\\\“type\\\\\\\”: \\\\\\\“task.Sample\\\\\\\”, \\\\\\\“params\\\\\\\”: {\\\\\\\“target\\\\\\\”: \\\\\\\“{\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\“task.Query\\\\\\\\\\\\\\\”, \\\\\\\\\\\\\\\“params\\\\\\\\\\\\\\\”: {\\\\\\\\\\\\\\\“target\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\”{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“task.Add\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“params\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“target\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\“task.Drop\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\”,
Gokart use a lot of memory when long pipeline. And the job is starting very slowly.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top GitHub Comments
[future] Caching
TaskInstanceParameter.serialize
input can speed up the process.https://github.com/m3dev/gokart/pull/257 will solve the problem of bloated memory.