-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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_papersizefunction'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_papersizefunction'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.
ThomasParistech
Metadata
Metadata
Assignees
Labels
No labels