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. Other Discussions
  3. The Insider News
  4. Holier than thou

Holier than thou

Scheduled Pinned Locked Moved The Insider News
c++comdesignperformance
7 Posts 6 Posters 1 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    Bulldozer00[^]:

    Since C++ (by deliberate design) does not include a native garbage collector or memory compactor, programs that perform dynamic memory allocation and de-allocation (via explicit or implicit use of the “new” and “delete” operators) cause small “holes” to accumulate in the free store over time.

    "Memory management is too important to be left to the computer."

    P R 2 Replies Last reply
    0
    • K Kent Sharkey

      Bulldozer00[^]:

      Since C++ (by deliberate design) does not include a native garbage collector or memory compactor, programs that perform dynamic memory allocation and de-allocation (via explicit or implicit use of the “new” and “delete” operators) cause small “holes” to accumulate in the free store over time.

      "Memory management is too important to be left to the computer."

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      ::yawn::

      K 1 Reply Last reply
      0
      • P PIEBALDconsult

        ::yawn::

        K Offline
        K Offline
        Kent Sharkey
        wrote on last edited by
        #3

        What can I say? Slow news day. /shrug

        TTFN - Kent

        1 Reply Last reply
        0
        • K Kent Sharkey

          Bulldozer00[^]:

          Since C++ (by deliberate design) does not include a native garbage collector or memory compactor, programs that perform dynamic memory allocation and de-allocation (via explicit or implicit use of the “new” and “delete” operators) cause small “holes” to accumulate in the free store over time.

          "Memory management is too important to be left to the computer."

          R Offline
          R Offline
          Rob Grainger
          wrote on last edited by
          #4

          What a useless article :- presents the problem but offers no solution at all.

          "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

          M A 2 Replies Last reply
          0
          • R Rob Grainger

            What a useless article :- presents the problem but offers no solution at all.

            "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #5

            Rob Grainger wrote:

            presents the problem but offers no solution at all.

            Sure he does: For those types of niche systems, the best, and perhaps only, practical options available for preventing any holes from accumulating in your briefs are to eliminate all deletes from the code :laugh: Marc

            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

            C 1 Reply Last reply
            0
            • M Marc Clifton

              Rob Grainger wrote:

              presents the problem but offers no solution at all.

              Sure he does: For those types of niche systems, the best, and perhaps only, practical options available for preventing any holes from accumulating in your briefs are to eliminate all deletes from the code :laugh: Marc

              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

              C Offline
              C Offline
              Colin Mullikin
              wrote on last edited by
              #6

              Marc Clifton wrote:

              preventing any holes from accumulating in your briefs

              This sounds like an altogether different problem... :laugh:

              The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

              1 Reply Last reply
              0
              • R Rob Grainger

                What a useless article :- presents the problem but offers no solution at all.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                A Offline
                A Offline
                Andy Brummer
                wrote on last edited by
                #7

                He listed several, but didn't explain them:

                Quote:

                If your application inherently requires post-initialization dynamic memory usage, then use pre-allocated, fixed size, unfragmentable, pools and stacks to acquire/release data buffers during runtime.

                I've used those approaches before and they can be extremely fast, especially when you manage thread synchronization yourself.

                Curvature of the Mind now with 3D

                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