Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]Add load time and memory display #12

Open
1 of 3 tasks
LaoshuBaby opened this issue May 13, 2022 · 1 comment
Open
1 of 3 tasks

[Feature Request]Add load time and memory display #12

LaoshuBaby opened this issue May 13, 2022 · 1 comment

Comments

@LaoshuBaby
Copy link
Collaborator

LaoshuBaby commented May 13, 2022

The load time depends on how large the osm file. Usually a 100MB file will cost more than 10s.

To let developer know the improvement between different python interpreter, and don't be too anxiety when waiting for loading, display ETA is needed.

If possible, memory usage also needed.


  • Display elapsed time
  • Display ETA
  • Display Memory usage
LaoshuBaby added a commit that referenced this issue Nov 21, 2022
Because I meet with this kind of problem today again.
@LaoshuBaby
Copy link
Collaborator Author

LaoshuBaby commented Jun 22, 2023

Just found out, that not all files are large
So if you want to implement dynamic loading, you don't need to display for very small files, they usually complete in a split second

Therefore, we need to set a condition
If the conditions are met, use a progress bar that dynamically adjusts the output content instead

  1. Load from the network (no matter how much)
  2. Batch loading (at least progress can be determined)
  3. Files larger than 100MB (the specific threshold can be negotiated) (it must can't be completed within 1s)
  4. It has been used for more than 1s (it seems that although the file is small, it is due to various reasons, perhaps the disk read and write speed, or the processor frequency)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant