Skip to content

adding check if logger is in debug mode to avoid string concatenation of... #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

usultis
Copy link

@usultis usultis commented Sep 26, 2014

adding check if logger is in debug mode to avoid string concatenation of the whole response object which might get quite large.

At the moment object concatenation is done always although it's only required in debug mode.

I've been tracking CPU usage of my application and multiple times have I seen in thread dump that concatenation taking a lot of CPU where I actually don't need it (as I'm not running in debug mode)

… of the whole response object which might get quite large.

At the moment object concatenation is done always although it's only required in debug mode
@jhoeller
Copy link
Contributor

Good catch - thanks for raising this! Committed to master as part of a general revision of WebAsyncManager; to be backported to 4.0.x and 3.2.x as well.

@jhoeller jhoeller closed this Sep 26, 2014
@sumiplus
Copy link

Thanks!

在 2014-09-26 19:40:47,"Juergen Hoeller" [email protected] 写道:

Closed #652.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants