I have been looking at this TODO:
|
# TODO(upgrade): Change the paper size. For now, just copy the full data and let the plot hide the rest |
I did create 2 functions to check if surfaces or roads were inside bounds or outside and I did the comparison on Berlin marathon (see the PR that mention this issue):
Without these functions:
change_papersize function's cost is 0
- Drawing cost is 1.7s
- Total cost: 1.7s
- Size of the A4 poster for Berlin : 8.4MB
With these functions
change_papersize function's cost is 3.8s
- Drawing cost is 1.1s
- Total cost: 4.9s
- Size of the A4 poster for Berlin : 6.4MB
Conclusion:
We got a 25% decrease in poster size but a major rise in time spent to get the poster (3s)
Remark:
90% of the cost if the change papersize comes from roads, we could imagine enhancing the pretreatment when creating the roads to reduce this cost.
I have been looking at this TODO:
pretty-gpx/pretty_gpx/rendering_modes/city/drawing/city_background.py
Line 76 in 21385bf
I did create 2 functions to check if surfaces or roads were inside bounds or outside and I did the comparison on Berlin marathon (see the PR that mention this issue):
Without these functions:
change_papersizefunction's cost is 0With these functions
change_papersizefunction's cost is 3.8sConclusion:
We got a 25% decrease in poster size but a major rise in time spent to get the poster (3s)
Remark:
90% of the cost if the change papersize comes from roads, we could imagine enhancing the pretreatment when creating the roads to reduce this cost.