carlosmn/SmartIrc4net — comment on commit 08e3d53237a567c67a1416e6275ace4e0ebb8cd5
File:  line 0
By meebey:

Some more comments from IRC:
15:04:53 if you do a micro benchmark I will merge it nonetheless, but till then I would prefere a non-regex solutjkon
15:05:41 well, you could go though all the array, detect empty strings and move them up...
15:06:02 hm, dunno if so much pointer-moving wouldn't be more expensive in the end
15:08:07 new list that only copies non-empty slots
15:08:33 it would have the right size as it knows how many slots will be needed max
15:09:19 more troublesome would be replace all 2+ spaces with a signgle on
15:09:26 but only up to :
15:09:32 else it modifies user messages
15:09:43 I wnioder if your solution covers that ;)
15:09:50 or does it also patch the user message?
15:10:37 my solution wouldneed a simple if slot == ':' break
15:11:25 nope you solution patches the user message as far as I can see
15:11:37 so if you put linear back into a string
15:11:43 all extra spaces of users will be gone
15:12:10 so ":Hi Carlos!" becomes ":Hi Carlos!"