Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. string tables

string tables

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformancetutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mel Stober
    wrote on last edited by
    #1

    I know what a string table is and how to use it. My question is -- is it worth it? Do those strings remain on disk and LoadString() reads them from there, or are they really loaded into ram memory during program startup?

    J 1 Reply Last reply
    0
    • M Mel Stober

      I know what a string table is and how to use it. My question is -- is it worth it? Do those strings remain on disk and LoadString() reads them from there, or are they really loaded into ram memory during program startup?

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Strings table are embedded inside the executable image (the .EXE file), that gets loaded to virtual memory at program startup. It is the processor's responsibility to bring virtual memory pages to RAM or store them in the disk cache (the swapping file) depending on whether the pages are being referred to or not (and some other optimization policies); so the question of whether the string table is loaded into memory or not is a fuzzy subject --probably it won't get loaded if you don't use resource at all. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      C 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Strings table are embedded inside the executable image (the .EXE file), that gets loaded to virtual memory at program startup. It is the processor's responsibility to bring virtual memory pages to RAM or store them in the disk cache (the swapping file) depending on whether the pages are being referred to or not (and some other optimization policies); so the question of whether the string table is loaded into memory or not is a fuzzy subject --probably it won't get loaded if you don't use resource at all. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        Joaquín: very educative!!! I am surprised!!! CLAP, CLAP, CLAP!!! ;) ;) ;) Regards.... The programmer's national anthem is 'AAAAAAAARRRRGHHHHH!!'. Carlos Antollini. Sonork ID 100.10529 cantollini

        J 1 Reply Last reply
        0
        • C Carlos Antollini

          Joaquín: very educative!!! I am surprised!!! CLAP, CLAP, CLAP!!! ;) ;) ;) Regards.... The programmer's national anthem is 'AAAAAAAARRRRGHHHHH!!'. Carlos Antollini. Sonork ID 100.10529 cantollini

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          You'll make me blush :-O Actually, there are inaccuracies in my explanation --read only sections of the executable probably won't ever do it to the swapping file (they're retrieved directly from the .EXE file itself and simply dismissed when not needed), and stuff like that. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups