You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
there are few functions that use worker thread to do the job, for example "passwordHash", i would like to suggest number of improvments.
Describe the solution you'd like
Main functionality we should add:
Add option to specify how many worker threads you want, client could set it up, example default configuration should be 2/logical cores. Server side add it into mtaserver.conf <workerThreads>4</workerThreads>
Make limit of how long worker thread can execute one function, let's say if passwordHash has cost=50 you probably made a mistake and it should stop executing after for example 30seconds.
Add to the performance browser an information of how many task is in progress, how many is queued
Additionally:
5. Add "Task" userdata which represent background task, so can i cancel it, check status, get result
6. Add some option that will warn user if non asynchronous function is called when asynchronous variant is availiable - mainly for debugging
7. Add warning when too many tasks are waiting in queue simillar to warning when you have too many files open
maybe i will add more in future
Describe alternatives you've considered
/
Additional context
/
Security Policy
I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
there are few functions that use worker thread to do the job, for example "passwordHash", i would like to suggest number of improvments.
Describe the solution you'd like
Main functionality we should add:
<workerThreads>4</workerThreads>
Additionally:
5. Add "Task" userdata which represent background task, so can i cancel it, check status, get result
6. Add some option that will warn user if non asynchronous function is called when asynchronous variant is availiable - mainly for debugging
7. Add warning when too many tasks are waiting in queue simillar to warning when you have too many files open
maybe i will add more in future
Describe alternatives you've considered
/
Additional context
/
Security Policy
The text was updated successfully, but these errors were encountered: