20
R-C-D
6y

Hey !
A big question:
Assume we got an android app which graphs a sound file .
The point is: the user is able to zoom in/out so the whole data must be read in the begining , but as the file is a little longer , the load time increases.
What can i do to prevent this?

Comments
  • 2
    Do calculations in parallel and graph data as it comes in.
  • 2
    So a bigger file takes more time to load? Isn't it just physics?

    The parallel stuff mentioned by @ravijojila makes sense.

    I have seen stuff that loads in real time too, so you can see what is being loaded and only use what is loaded, does it make sense?
  • 1
    You can benchmark the loading time without any calculation or drawing. If this isn't the clear majority of the total time, then the bottleneck is elsewhere, and you can run several threads in parallel to load parts of the file and do the partial calculations.
Add Comment