Best way to animate multiple meshes?

I am creating multiplayer game using socket io and three js. I get object with x and z position of all the connected players when any one of them move and now I’m Looping through that object and updating position of the object but of course it’s not good for performance. What could be the best way to get best performance out of this scenario. Also I need to calculate distance between user and all the other player and need to know when there is someone in user’s range. I’m not sure what should I do. I need solution which will run good at 100 users too. Is there a way?