JohnnyRS / PandaCrazy-Max

PandaCrazy Chrome Extension for Amazon Mturk
21 stars 8 forks source link

Loading data at startup. #21

Closed JohnnyRS closed 4 years ago

JohnnyRS commented 4 years ago

Would like to see if the loading at startup could be a bit faster. Won't make a difference for less than 100 jobs but when loading 416 jobs in 2.2 seconds it seems a bit too slow to me. Over 400 jobs would be rare BUT because the searches can be done a lot faster that means more search jobs can be allowed. Maybe search jobs can be loaded only from database or another way of holding the search options could be used.

Adding cards in the UI individually is a slow way of doing it so creating all the cards first and then appending it to the UI would be a lot faster. Also could the card info be saved in another way for hidden tabs?

JohnnyRS commented 4 years ago

I have the cards added to the tab content after they are all loaded. Loading 416 jobs in little bit less than a second now. I am satisfied with that. Only other thing is letting the search jobs be in a database of it's own and have data loaded from the database always for searches because lot of search jobs will be allowed now.

JohnnyRS commented 4 years ago

I am satisfied with the load times for the data. Search jobs will be handled by the search class later.