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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:57:53+00:00 2026-05-22T22:57:53+00:00

Is there a real performance gain when I turn {$IMPORTEDDATA} off ? The manual

  • 0

Is there a real performance gain when I turn {$IMPORTEDDATA} off ?

The manual only says this: “The {$G-} directive disables creation of imported data references. Using {$G-} increases memory-access efficiency, but prevents a packaged unit where it occurs from referencing variables in other packages.”


Update:

Here is more info I could find:

“The Debugging section has the new option Use imported data references (mapped to $G), which
controls the creation of imported data references (increasing memory efficiency but preventing the
access of global variables defined in other runtime packages)”

  • 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-22T22:57:54+00:00Added an answer on May 22, 2026 at 10:57 pm

    Almost never

    This directive only refers to accessing global unit variables from another unit.

    If you use {$G+}

    unit1;
    
    interface
    
    var
      Global1: integer;   //<--  this is a global var in unit1.
      Form1: TForm1;      //<--  also a global var, but really a pointer
    

    Global1 will be accessed indirectly via a pointer (if and when accessed from outside unit1)
    Form1 will also be accessed indirectly (i.e. change from a direct pointer to an indirect pointer).

    if you use {$G-}, the access to integer global will be direct and thus slightly faster.

    This will only make a difference if you use global public unit variables in another unit and in time critical code, i.e. almost never.

    See this article: http://hallvards.blogspot.com/2006/09/hack13-access-globals-faster.html

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

Sidebar

Related Questions

Is there any real need to do this: CGFloat x = 10.0f; CGFloat y
Is there any real issue - such as performance - when the hibernate object
Are there real tangible differences or is it just a matter of taste?
I know it is customary, but why? Are there real technical reasons why any
Is there any real practical difference between java -server and java -client? All I
Is there any real reason not to make a member function virtual in C++?
Is there any real use for self modifying code ? I know that they
Is there any real difference to screen reader users (or any users really) whether
Are there a real reason to use dynamic linking and binary distributions these days?
In C# is there any real difference (other than syntax) under the hood between:

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.