Remove functions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stan McCann

    #1

    Remove functions

    I'm writing an application that is becoming quite large. I would like to
    keep memory usage to a minimum so I'm looking for a way to include a file
    of functions that are only used once, then discard the functions freeing
    up the memory they take. Any ideas?

    --
    Stan McCann, "Uncle Pirate" http://stanmccann.us/
    Implementing negative score for googlegroup postings, see
    J9官网洁具创立于1994年,是一家专注生产高品质卫生洁具的企业,品牌享誉国内外。产品涵盖洁具、卫浴、浴室柜、智能马桶、淋浴房、花洒、智能坐便器、浴缸、龙头等全卫精品,欢迎定制加盟,2016年J9官网洁具A股上市,成立帝欧家居股份有限公司。

    A zest for living must include a willingness to die. - R.A. Heinlein
  • Iván Sánchez Ortega

    #2
    Re: Remove functions

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Stan McCann wrote:
    I'm writing an application that is becoming quite large. I would like to
    keep memory usage to a minimum so I'm looking for a way to include a file
    of functions that are only used once, then discard the functions freeing
    up the memory they take. Any ideas?
    First of all, use __autoload(). See the manual.

    And remember: this is a web app, and it will free memory after every page
    has been completely shown.

    - --
    - ----------------------------------
    Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

    Darth Vader duerme con un osito Wookie.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (GNU/Linux)

    iD8DBQFEsYqK3jc Q2mg3Pc8RAoSIAJ 9Yx8ZRWfSuC0T07 m14q09K3A+DhACf VoZP
    qCa7ck+uWv3pdEx mJz1gjZ0=
    =iAxa
    -----END PGP SIGNATURE-----

    Comment

    • Stan McCann

      #3
      Re: Remove functions

      =?ISO-8859-15?Q?Iv=E1n_S=E 1nchez_Ortega?=
      <i.punto.sanche z--@rroba--mirame.punto.ne twrote in
      news:kde8o3-aud.ln1@blacksp ark.escomposlin ux.org:
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1
      >
      Stan McCann wrote:
      >
      >I'm writing an application that is becoming quite large. I would
      >like to keep memory usage to a minimum so I'm looking for a way to
      >include a file of functions that are only used once, then discard
      >the functions freeing up the memory they take. Any ideas?
      >
      First of all, use __autoload(). See the manual.
      Thanks, I'll look at that.
      And remember: this is a web app, and it will free memory after every
      page has been completely shown.
      Duh! Thinking 'old style' programming. Of course the functions in
      question will be removed from memory right away, they are to read data
      from the database to build a form, then you click the form button and
      they're gone. I still sometimes get confused with different languages,
      and different types of programs. At least I don't get assembly or
      Modula II code in my apps anymore. ;)

      Thanks for straightening me out.

      --
      Stan McCann, "Uncle Pirate" http://stanmccann.us/
      Implementing negative score for googlegroup postings, see
      J9官网洁具创立于1994年,是一家专注生产高品质卫生洁具的企业,品牌享誉国内外。产品涵盖洁具、卫浴、浴室柜、智能马桶、淋浴房、花洒、智能坐便器、浴缸、龙头等全卫精品,欢迎定制加盟,2016年J9官网洁具A股上市,成立帝欧家居股份有限公司。

      A zest for living must include a willingness to die. - R.A. Heinlein

      Comment

      Working...