Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a real-time data program that has 24 dialogues - they show different real-time data that's gathered from a comm port.

The dialogues are classes that load from JSON files and are placed into a dictionary. They contain layout data for tables, buttons, pictures, etc. - just like HTML - the text/colours/etc. change dynamically, data bound to the comm port data.

There is a menu navigation system - 4 main menus, for the sake of explanation assume 6 dialogues can be navigated to by these menus.

The entire program runs very well on a low power CPU in Linux - it loads instantaneously on Windows but takes about 12 seconds to load the 24 JSON files.

My idea was to load the main title page and show it immediately, then async load the other JSON files.....but if a user navigates to a dialogue before it's loaded I need to await it/prioritise it.

Any thoughts?

What I have tried:

I've loaded all the files in a parallel loop - but the code runs on different hardware - some single core - which doesn't aid perceived response.
Posted
Updated 16-Sep-19 4:15am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900