c4dt / d-voting

📧 E-Voting platform based on the Dela blockchain
https://dedis.github.io/d-voting
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Putting ballots in separate memory #121

Closed ineiti closed 8 months ago

ineiti commented 8 months ago

This PR separates the ballots from the forms. This allows to run adding a new ballot much faster. When there are more than 100 ballots, this gets very important: adding a 1000th ballot can take 1s, a 10'000th ballot 10s.

Using this PR, up to the 10'000th ballot it only takes 100ms.

Thank you for opening a pull request with this project, please also:

ineiti commented 8 months ago

I think the tests/json/evoting/forms/openNoVotes.json got into the mix by mistake, have you rebased your branch on the current main?

True - late night git issue debugging. I was confused where this file comes from and was under the impression it was in the latest main... Deleted now.