I use IRC on a daily basis and my client of choice for that is Irssi. I run it on my Raspberry Pi which is always on, so I generally stay idle in the channels I’ve joined. Some channels have a lot of users connecting and disconnecting which clogs up the backlog a lot. I don’t know these users so I don’t really care who joins or parts. I’m more interested in any discussions or solutions to problems that are being asked.
To ignore these messages in Irssi you can simply issue the following command. Just make sure to replace #channel with the channel you want this setting to apply to.
/ignore -channels #channel * JOINS PARTS QUITS NICKS
If you use another IRC client I suggest you take a look at this hide join part messages for IRC clients.