Right now I'm using the object/prototype pattern to create simple particles in an animation that is triggered by clicking the "I don't like gray" button on http://hello-mat.com/
I'm wondering if I should use a module pattern (edit: a factory! see comments) instead for performance reasons. If I do need the module pattern, I would love to have a better idea on why it would be a good fit in my use case.
Many thanks to anyone willing to explain.
Thanks to @bergi and @jonasw I was able to get good answers:
The module pattern I was referring to was the one described in the first book in the "You don't know js" series. As pointed out by @bergi, it should be named factory instead (see bergi's issue on github)
Conclusion: I was definitely right using a class with prototype methods and creating my particles using new
.