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. UNICODE Problem

UNICODE Problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • L Offline
    L Offline
    lisoft
    wrote on last edited by
    #1

    Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster?

    Lisoft

    M 1 Reply Last reply
    0
    • L lisoft

      Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster?

      Lisoft

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      lisoft wrote: Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster? using unicode should not make your software faster, and should not make your software go slower either. maybe you are spending (too much) time converting unicode strings to non-unicode strings, or vice-versa.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      B 1 Reply Last reply
      0
      • M Maximilien

        lisoft wrote: Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster? using unicode should not make your software faster, and should not make your software go slower either. maybe you are spending (too much) time converting unicode strings to non-unicode strings, or vice-versa.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        This is not necessarily True. MOST of the Win32 API calls involving strings that are used by an ANSI program have to first pass through interal code to CONVERT those strings to Unicode before calling the native UNICODE functions in the WIN32 API and then back into ANSI upon returning any strings. Microsoft has consistently stated that a UNICODE application with a lot of string processing towards WIN32 API function calls would be faster if it were built to use UNICODE. So the question makes sense, why is it slower in UNICODE? I don't really know why.

        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