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 7676597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:14:09+00:00 2026-05-31T17:14:09+00:00

Do we have hard performance data that demonstrates an advantage of single quotes over

  • 0

Do we have hard performance data that demonstrates an advantage of single quotes over double-quotes? Most people will be more comfortable with double quotes.

I know GString can be used when we are evaluating the expression, and perform lazy evaluation

  • 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-31T17:14:10+00:00Added an answer on May 31, 2026 at 5:14 pm

    Here’s a link to some tests done back in ’09:

    http://pstehlik.com/2009/01/the-speed-difference-between-the-different-types-of-strings-in-groovy-and-grails/

    The results did seem to vary a lot depending on whether you were using a String or GString, what you were doing with that object, and whether you were running on the console or on Jetty.

    But being almost 3 years ago, much may have changed. The test script is still available at the bottom of the page, so you could try running that in your current Groovy version to see what the results are like now. You can also see his nabble post which may give some more information.

    Personally, I use single-quote Strings more often than not, and just use double-quote GString when I need to use variable substitution. Never have tested the performance differences though.

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

Sidebar

Related Questions

I have a hard time figuring this one out, it's about mistakes that can
I'm about to make a design decision that could potentially have visible performance implications.
I learned the hard way that i shouldn't store serialized data in a table
I have a long-form data that represents a bunch of different configurations of different
In my case I have 2D ArrayList full of objects that have data which
Say I have got a program that hogs the processor and/or hard disk to
I am coming from C# background and I have hard time figuring out how
I have 2 hard-drives, C:\ and D:\ Django imports correctly (which is in my
I have a hard coded URL like so: https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&productPolicyId=7841#a1 When Javascript is enabled i
I have 4 hard coded divs. After the third div I would like to

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.