By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,129 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

Remove functions

P: n/a
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
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein
Jul 9 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
-----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)

iD8DBQFEsYqK3jcQ2mg3Pc8RAoSIAJ9Yx8ZRWfSuC0T07m14q0 9K3A+DhACfVoZP
qCa7ck+uWv3pdExmJz1gjZ0=
=iAxa
-----END PGP SIGNATURE-----
Jul 9 '06 #2

P: n/a
=?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=
<i.***************@rroba--mirame.punto.netwrote in
news:kd************@blackspark.escomposlinux.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
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein
Jul 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.