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. The Lounge
  3. Saving memory byte at a time

Saving memory byte at a time

Scheduled Pinned Locked Moved The Lounge
performance
18 Posts 9 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.
  • E ExcellentOrg

    In a production code,I've seen logic that reads data from a stream one byte at a time on a 64 bit machine... Programmer's response on being queried. I wanted to write memory-efficient code ..

    D Offline
    D Offline
    dan sh
    wrote on last edited by
    #9

    Magnificent. Is he sending one byte at time while writing data as well? Must be so much fun uploading huge files to your database.

    "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

    E 1 Reply Last reply
    0
    • E ExcellentOrg

      In a production code,I've seen logic that reads data from a stream one byte at a time on a 64 bit machine... Programmer's response on being queried. I wanted to write memory-efficient code ..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #10

      ExcellentOrg wrote:

      In a production code

      Anything starting with that is going to be good. And it didn't disappoint.

      1 Reply Last reply
      0
      • E ExcellentOrg

        I wish I could slap but cannot for the programmer puts makeup and wears high heels and in today's post-feminazi world, it would mean lead to lots of vexatious and fictitious lawsuits. Anyways, mgmt has taken heed and have rolled back that out of production and gotten another bright programmer to redo the whole thing...

        S Offline
        S Offline
        SoMad
        wrote on last edited by
        #11

        You have to get away from thinking like that. The slap needs to come immediately and by instinct regardless of the sex of the programmer. Otherwise you are just being sexist. :-\ [EDIT] Oh, wait... I just re-read my employee handbook. Apparently I am not allowed to hit anybody in the workplace. :sigh: [/EDIT] Soren Madsen

        "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

        E OriginalGriffO 2 Replies Last reply
        0
        • R Rajesh R Subramanian

          Never byte more that what you can chew.

          "Real men drive manual transmission" - Rajesh.

          E Offline
          E Offline
          ExcellentOrg
          wrote on last edited by
          #12

          Well, on 64 bit machine, at the very least, it would be 8 bytes at a time.... ------- Real men quit driving and long since walked/trotted away into the oblivion ....

          1 Reply Last reply
          0
          • D dan sh

            Magnificent. Is he sending one byte at time while writing data as well? Must be so much fun uploading huge files to your database.

            "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

            E Offline
            E Offline
            ExcellentOrg
            wrote on last edited by
            #13

            Will know soon enough when I get to see the writing side. Holding onto a little hope because the other code was written by a different person (who incidentally has left few months ago)

            1 Reply Last reply
            0
            • S SoMad

              You have to get away from thinking like that. The slap needs to come immediately and by instinct regardless of the sex of the programmer. Otherwise you are just being sexist. :-\ [EDIT] Oh, wait... I just re-read my employee handbook. Apparently I am not allowed to hit anybody in the workplace. :sigh: [/EDIT] Soren Madsen

              "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

              E Offline
              E Offline
              ExcellentOrg
              wrote on last edited by
              #14

              I agree with you SoMad... But its more "once bitten twice shy", my friend... I've seen how the innards of Family Courts and VAWA Courts look like so and how it gobbles up men's assets/properties (few hundred thousand $ per bite) ... If its any consolation to you, I thumped my fist hard on mgmt table and that has set the remedial ball rolling ...

              1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Never byte more that what you can chew.

                "Real men drive manual transmission" - Rajesh.

                C Offline
                C Offline
                CPallini
                wrote on last edited by
                #15

                :laugh: (I understood it, definitely making progresses...)

                Veni, vidi, vici.

                1 Reply Last reply
                0
                • S SoMad

                  You have to get away from thinking like that. The slap needs to come immediately and by instinct regardless of the sex of the programmer. Otherwise you are just being sexist. :-\ [EDIT] Oh, wait... I just re-read my employee handbook. Apparently I am not allowed to hit anybody in the workplace. :sigh: [/EDIT] Soren Madsen

                  "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #16

                  SoMad wrote:

                  Apparently I am not allowed to hit anybody in the workplace

                  What! :omg: How did that one get in? Can you push them out the window first, then slap them when they hit the ground?

                  This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  S 1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    SoMad wrote:

                    Apparently I am not allowed to hit anybody in the workplace

                    What! :omg: How did that one get in? Can you push them out the window first, then slap them when they hit the ground?

                    This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                    S Offline
                    S Offline
                    SoMad
                    wrote on last edited by
                    #17

                    Hmmm...[reading the fine print] Well, it doesn't say that I can't do that, so... :cool: Soren Madsen

                    "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                    1 Reply Last reply
                    0
                    • E ExcellentOrg

                      I wish I could slap but cannot for the programmer puts makeup and wears high heels and in today's post-feminazi world, it would mean lead to lots of vexatious and fictitious lawsuits. Anyways, mgmt has taken heed and have rolled back that out of production and gotten another bright programmer to redo the whole thing...

                      R Offline
                      R Offline
                      Rage
                      wrote on last edited by
                      #18

                      ExcellentOrg wrote:

                      today's post-feminazi world

                      Great phrase ! I'd love to re-use it, but this will not be on the best effect in Germany.

                      ~RaGE();

                      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                      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