[kraken] Fix: Recursive display of line and routes #4128
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before correction:
line.routes[].line.routes[]
routes[].line.routes[].line
After correction
line.routes[]
routes[].line
For more details:
Comparison of response time for some request on my PC before and after the correction:
url_navitia/lines/rerc/lines?
-> depth=1 : 12.5 ms -> 13.0 ms / 57.5 ko -> 57.5 ko
-> depth=2 : 13.6 ms -> 12.7 ms / 80.4 ko -> 57.6 ko
-> depth=3 : 70 ms -> 12.8 ms / 1.5 Mo -> 57.6 ko
url_navitia/lines/rerc/routes?
-> depth=1 : 15 ms -> 14.6 ms / 69.6 ko -> 75.8 ko (Network added in route.line)
-> depth=2 : 76.5 ms -> 18 ms / 1.4 Mo -> 94.8 ko
-> depth=3 : 393 ms -> 340 ms / 5.9 Mo -> 4.1 Mo (No change is made on route.stop_point and its sub-objects)