ppigazzini

Results 323 comments of ppigazzini

PROD is running with this configuration, see the live monitoring https://cloud.mongodb.com/freemonitoring/cluster/V726YST63VGLDMUUVB4GT34WZHIY6L4D ```python ph = PasswordHasher(time_cost=1, memory_cost=16384, parallelism=1, hash_len=16, salt_len=16) def authenticate(self, username, password): pwd = "correct horse battery staple" hash...

> Are there serious issues with caching the hash? Hash cached worker side? We already write the password in the config.

> No. Just maintaining a dictionary on the server with { password: hash} . Then the hash for every password has to be computed only once (until the server reboots)....

> Different schemes would be possible but I was just suggesting the conceptually simplest one. Computing the hash of a password is expensive. So saving the result of the computation...

This extreme parameters configuration has only 4% lower CPU usage than the previous configuration: ```python ph = PasswordHasher(time_cost=1, memory_cost=8192, parallelism=1, hash_len=16, salt_len=8) def authenticate(self, username, password): pwd = "correct horse...

Check the code for the flag cache, I personally don't like to have different implementations of the same pattern: https://github.com/glinscott/fishtest/blob/da4aa2a46d33b1c95925d7ec4af603da5011a218/server/fishtest/api.py#L249-L304 Here the code to drop a flag entry after a...

Autoformat test on this snippet from `games.py`: - master ```python def make_player(arg): return run['args'][arg].split(' ')[0] while games_remaining > 0: # Run cutechess-cli binary cmd = [ cutechess, '-repeat', '-rounds', str(int(games_to_play/2)),...

I formatted the mako templates by hand, leaving unformatted the tags. BTW the mako documentation uses different code formatting, so I randomly picked one type.

There are a couple of conflicts to be solved.

DEV updated, added user00 in administrators group.