Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+18 votes

Are there any tips to increase the speed of your search function, ours feels a bit laggy.

asked in CSC305 Fall 2023 by (1 point)

4 Answers

+7 votes

Have you implemented the thumbnail-sized images?

The actual searching for information in these small datasets is likely to be instantaneous, but displaying the results in the UI could have performance issued.

Using small (thumbnail) images can help. Also, having the small images preloaded, so it isn't loading them from disk could also speed things up.

answered by (3.5k points)
+3 votes

I don't know if you already did or how you are implementing it, but we used the Java's Stream API, which turns to be very fast.

answered by (1 point)
+2 votes

we made some good use of hasmap to increase the efficiency

answered by (1 point)
+1 vote

A Map definitely would help with efficiency, that what our group uses for Search and Filters.

answered by (1 point)
...