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

[DOCS] add multithreading discussion in performance tips #992

Open
Datseris opened this issue Feb 29, 2024 · 3 comments
Open

[DOCS] add multithreading discussion in performance tips #992

Datseris opened this issue Feb 29, 2024 · 3 comments

Comments

@Datseris
Copy link
Member

The points from this post as useful to have in the docs:

https://discourse.julialang.org/t/multi-threads-error-undefreferror-in-simple-abm-with-agents-jl/110900/19

mainly the locking of dictionaries, or the usage of a :dead field for later mass removal, or the usage of a thread safe dictionary for agent container.

(this means that we need to change the agent container types in the source code from Dict to AbstrcactDict and from Vector to AbstractVector)

@Tortar
Copy link
Member

Tortar commented Feb 29, 2024

I would remove the locking of dictionaries because it is not specific enough in my opinion (clearly we can say that this is the methodology a thread safe dictionary in ThreadSafeDict.jl uses though), I like the other suggestions but the thread safe dictionary one should be tested if it actually works at all before proposing it

@Tortar
Copy link
Member

Tortar commented Feb 29, 2024

In any case cool ideas !

@Tortar
Copy link
Member

Tortar commented Feb 29, 2024

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

No branches or pull requests

2 participants