nus-cs2103-AY1819S1 / forum

A repo to hold the issue tracker for module discussions
1 stars 1 forks source link

Question on loading application data #77

Open anubh-v opened 6 years ago

anubh-v commented 6 years ago

I noticed that AB4 loads application data synchronously. In our project, if we are loading other forms of data that may not be immediately needed when the application is loaded, is it considered premature optimisation if we load it asynchronously?

damithc commented 6 years ago

It depends on benefits and costs. You can try both and come to your own conclusions. For example, assuming synchronous is much easier, you can try that and see if it makes the initial start-up too slow. If it is, you can try async loading and see if the speedup is worth the extra complications.