JollyJolli / HacktoberWall

HacktoberWall is a simple web app where contributors can add their name to a virtual wall by submitting a JSON file. The goal is to offer an easy way for people to participate in Hacktoberfest. Contributors can add their name or help improve the page's design and functionality, creating a growing display of Hacktoberfest participants.
https://hacktoberwall.formen.cc/
Other
34 stars 137 forks source link

Optimize Search Functionality and Reduce Repeated JSON Fetches #25

Closed JollyJolli closed 1 month ago

JollyJolli commented 1 month ago

Currently, the search functionality has two key inefficiencies:

  1. Repeated Fetching of contributors.json: Every time a character is typed in the search bar, the loadContributors() function is called, which repeatedly fetches the contributors.json file. This is unnecessary and can be optimized by fetching the file only once when the page loads.

  2. Inefficient Search Algorithm: The current search over contributor names is done using a linear search method. This approach could become slow as the number of contributors grows. A more efficient approach, like using a trie (prefix tree), could significantly speed up prefix-based searches.

Tasks

Feature Info

Additional Context

Optimizing the search functionality will provide a better user experience, especially as the project grows and more contributors are added.

JollyJolli commented 1 month ago

@RudraJY

JollyJolli commented 1 month ago

I can only assing you if you comment here because you havent contributed yet

RudraJy commented 1 month ago

Oh right

JollyJolli commented 1 month ago

Ready!

JollyJolli commented 1 month ago

Happy contributing

JollyJolli commented 1 month ago

Hey i changed some things on the HTML and CSS, so dont forget to do a git pull