Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 869603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:20:04+00:00 2026-05-15T10:20:04+00:00

I am looking into the options available to me for optimising the performance of

  • 0

I am looking into the options available to me for optimising the performance of JBoss 5.1.0.

One of the options I am looking at is setting genStrAsCharArray to true in <JBOSS_HOME>/server/<PROFILE>/deployers/jbossweb.deployer/web.xml. This affects the generation of .java code from .JSPs.

The comment describes this flag as:

Should text strings be generated as char arrays, to improve performance in some cases?

I have a few questions about this.

  1. Is this the generation of Strings in the dynamic parts of the JSP page (ie each time the page is called) or is it the generation of Strings in the static parts (ie when the .java is built from the JSP)?
  2. “in some cases” – which cases are these? What are the situations where the performance is worse?
  3. Does this speed up the generation of the .java, the compilation of the .class or the execution of the .class?
  4. At a more technical level (and the answer to this will probably depend on the answer to part 1), why can the use of char arrays improve performance?

Thanks in advance

Rich

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:20:04+00:00Added an answer on May 15, 2026 at 10:20 am

    With this setting all String values are declared as static char[] as follows:

    static char[] _char_array_1 = "someString".toCharArray();
    

    and used as follows:

    out.write(_char_array_1);
    

    instead of being used as follows:

    out.write("someString");
    

    This has two clear benefits:

    1. A char[] has less memory overhead than String.
    2. The toCharArray() doesn’t need to be (implicitly) called on every out.write(string) anymore.

    Sounds like microoptimization, but those little bits counts a lot in a heavily visited website.

    This setting is by the way not JBoss AS specific. It’s Jasper specific, the JSP compiler of Apache Tomcat which is also used in under each JBoss AS and Sun Glassfish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking looking into the options for tweaking the performance of JBoss 5.1.0
I'm currently looking into different options for unit testing Silverlight applications. One of the
I'm looking into some possible options for unit testing C++ classes. So, short and
I've recently been looking into targeting the .NET Client Profile for a WPF application
I've been looking into different web statistics programs for my site, and one promising
I am looking into adding RSS feeds to one of my Django apps and
I was looking into the configuration options of the Elgg, the open source social
I have been looking into some options for creating a slide out bar for
I am at the moment looking into several options to create a new app
I'm looking into designing a media server application for a school project and was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.