"Lag bombing"—flooding chat with repeated characters to crash or slow a room—is really just griefing, and it ruins the experience for everyone else in the room. Most communities and moderators will punish it with a mute or ban, so it's not worth doing.
If your own game is lagging, better fixes include lowering your graphics settings, closing background tabs, or checking your connection instead of spamming chat.