Comment identification code comparison causing memory peaks