Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #20879

Re: working with big numbers

From nick_keighley_nospam@hotmail.com
Newsgroups comp.lang.c
Subject Re: working with big numbers
Date 2012-05-17 02:42 -0700
Organization http://groups.google.com
Message-ID <7761083.2431.1337247739694.JavaMail.geo-discussion-forums@vbvq7> (permalink)
References <ee0f80bf-1b3c-4996-a6db-64ecb396cdb7@rn12g2000pbb.googlegroups.com> <1707410.4128.1337026267273.JavaMail.geo-discussion-forums@yngr17> <jot85h$3i5$1@dont-email.me> <joto72$1ua$1@dont-email.me>

Show all headers | View raw


On Tuesday, May 15, 2012 3:11:45 PM UTC+1, Bl0ckeduser wrote:
> On 12-05-15 05:37 AM, Noob wrote:
> > bl0ckedusersoft@gmail.com wrote:

> > Declaring "huge" auto arrays is not the best idea.
> >
> > You had better allocate such objects dynamically.
> 
> Good idea. I think a good dynamic allocation scheme
> would save memory and allow my program to calculate larger
> factorials much faster.

I don't see why. It's unlikely to save memory. In most implementations dynamically allocated objects take up slightly more space than auto objects. And dynamic memory to the best of my knowledge is rarely quicker.

But many implementations limit the size of the stack (where auto variables are usually allocated). 

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

working with big numbers ashu <ashishmourya21@gmail.com> - 2012-05-13 08:42 -0700
  Re: working with big numbers thomas.mertes@gmx.at - 2012-05-13 09:48 -0700
    Re: working with big numbers Ike Naar <ike@sverige.freeshell.org> - 2012-05-15 07:19 +0000
      Re: working with big numbers Nils M Holm <news2009@t3x.org> - 2012-05-15 07:56 +0000
        Re: working with big numbers Ike Naar <ike@sverige.freeshell.org> - 2012-05-15 14:11 +0000
  Re: working with big numbers thomas.mertes@gmx.at - 2012-05-13 10:00 -0700
  Re: working with big numbers Barry Schwarz <schwarzb@dqel.com> - 2012-05-14 15:53 -0700
  Re: working with big numbers bl0ckedusersoft@gmail.com - 2012-05-14 13:11 -0700
    Re: working with big numbers Noob <root@127.0.0.1> - 2012-05-15 11:37 +0200
      Re: working with big numbers Bl0ckeduser <bl0ckedusersoft@gmail.com> - 2012-05-15 10:11 -0400
        Re: working with big numbers nick_keighley_nospam@hotmail.com - 2012-05-17 02:42 -0700
          Re: working with big numbers Nobody <nobody@nowhere.com> - 2012-05-17 18:43 +0100
            Re: working with big numbers jgk@panix.com (Joe keane) - 2012-05-18 21:57 +0000
          Re: working with big numbers Bl0ckeduser <bl0ckedusersoft@gmail.com> - 2012-05-17 17:44 -0400
    Re: working with big numbers Peter Nilsson <airia@acay.com.au> - 2012-05-16 15:38 -0700
      Re: working with big numbers Bl0ckeduser <bl0ckedusersoft@gmail.com> - 2012-05-16 22:01 -0400
  Re: working with big numbers Paul <nospam@needed.com> - 2012-05-14 19:44 -0400
  Re: working with big numbers Robert Miles <robertmilesxyz@gmail.com> - 2012-05-14 18:16 -0700
  Re: working with big numbers Ike Naar <ike@sverige.freeshell.org> - 2012-05-15 06:50 +0000
  Re: working with big numbers Nils M Holm <news2009@t3x.org> - 2012-05-15 07:06 +0000
  Re: working with big numbers James Dow Allen <jdallen2000@yahoo.com> - 2012-05-15 02:13 -0700
    Re: working with big numbers Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-15 11:07 +0100
      Re: working with big numbers Nils M Holm <news2009@t3x.org> - 2012-05-15 11:10 +0000
        Re: working with big numbers Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-15 15:03 +0100
          Re: working with big numbers Bl0ckeduser <bl0ckedusersoft@gmail.com> - 2012-05-15 10:34 -0400
  Re: working with big numbers Edwin van den Oetelaar <newsgroups@oetelaar.com> - 2012-05-17 13:14 +0200
    Re: working with big numbers "BartC" <bc@freeuk.com> - 2012-05-17 12:34 +0100

csiph-web