Re: simple math problem?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Param R. (pr_at_nospam.com)
Date: 12/29/04


Date: Wed, 29 Dec 2004 10:49:49 -0600

Lets leave aside database and IO for a second. Lets assume my apps dont use
them. If I have an object with about 1000 Decimal variables. As per the docs
this will consume 16,000 bytes of memory or roughly 15K. Now if my server
had 1GB RAM, that would give me a max possible of about 69,000 objects
living in memory. Ofcourse that is assuming all memory is reserved for my
objects which is not the case. OS, Services etc need RAM. I guess I could
add more RAM if the server could take it.

thanks!

"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1c3c8366d59fd52398bb4e@msnews.microsoft.com...
> Param R. <pr@nospam.com> wrote:
>> He ends the article with "binary floating point is generally faster on
>> current hardware than decimal floating point." So which one should I use
>> for
>> the best combination of precision and performance? I dont need 10 places
>> after the decimal point. I just need 2 to be stored accurately since most
>> of
>> my calculations involve money.
>
> If you are doing calculations involving money, you should almost
> certainly use the decimal type.
>
> You seem to be worried about performance, but do you have any concrete
> data to say that your bottlenecks are actually in the calculations,
> rather than IO, database access etc?
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Relevant Pages

  • Re: Since forth does things in k not megs, can that lead to massive speed?
    ... Can calculations or searches be parallelized somehow? ... there any kind of database done in forth? ... 2000megs ram and things are not 2000 times as fast...... ...
    (comp.lang.forth)
  • Since forth does things in k not megs, can that lead to massive speed?
    ... calculations or searches be parallelized somehow? ... any kind of database done in forth? ... ram and things are not 2000 times as fast...... ...
    (comp.lang.forth)
  • Re: performance optimization?
    ... need more RAM. ... Only if your machine is IO limited by your hard drives does it make much ... I do run database software and even with that I have ... # semaphore maximum value: 32767 MAX ...
    (comp.os.linux.misc)
  • RE: Requery on command button not working
    ... Are these calculations coming from "across the ... See http://www.QBuilt.com for all your database needs. ... >> The CPU is busy executing your request. ... >>> buttons the intention is to display the releveant data for that period. ...
    (microsoft.public.access.forms)
  • Re: out of memory
    ... read only the smaller file into a hash. ... the smaller file will fit into RAM. ... Depending upon the sorting algorithm this would be Ologor ... put your relevant data into a database and use ...
    (comp.lang.perl.misc)