Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserve single thread executor service for server #490

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

celuchmarek
Copy link
Member

Zamýšľal som sa, prečo trvá tak dlho spustiť Autogram z extension a potom zobraziť SignigDialog. V mojej konfigurácii mám zapnuté všetky trusted listy, takže SignatureValidator o to viac pečie po spustení. A dnes mi nejako napadlo, či to nebude tým, že server zdieľa thread pool so SignatureValidatorom. Skúsil som dať teda serveru osobitný thread a zrazu API odpovedá aj hneď po spustení Autogramu 🥳

Navyše, 8 threadov pre validátor je veľa. Povedzme, že bežný PC má 8 threadov, tak toto ho celý upečie. 4 dávajú väčší zmysel.

@celuchmarek celuchmarek requested a review from jsuchal July 12, 2024 14:15
@jsuchal
Copy link
Member

jsuchal commented Jul 12, 2024

Chcem vidieť video!

@celuchmarek
Copy link
Member Author

@jsuchal pre taký čistý e2e test potrebujem normálne nainštalovať package. Lokálne ale na macu neviem zbuildiť taký, ktorý by som potom aj vedel spustiť (problémy s podpismi). Tak potrebujem build z githubu: https://github.com/slovensko-digital/autogram/actions/runs/9935142762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants