Please sign in to comment.
Py: Generate ids for bulk particle creation more efficiently (#3598)
Description of changes: When adding many particles without specifying the ids ``` system.part.add(pos=...) ``` generate all new particle ids at once. This avoids n-1 calls to get_maximal_particle_id() which gets expensive for big systems (100k particles).
- Loading branch information
Showing with 11 additions and 5 deletions.