Well... I have to admit.. I have modified send_to_char to NOT have a "const" in it.. it's a standard "char" now. It seems to have become much more efficient now. The fact that it was a const was a little stupid in my book. If I'm wrong, please tell me, and explain to me why. From what I understand, a const is allocated and never released so it can be used in other functions without having to be passed directly to the other function.. now it I'm sending the "txt" to the other function in the function arguments, why in the hell should it be a const?

- Valnir

----- Original Message ----- From: "Davion Kalhen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 07, 2005 8:37 AM
Subject: Re: Memory issues.


Heh, if you really wanna get picky on the static/non-static stuff, you
might want to consider taking a look at some other functions - Like
send_to_char, allocates memory every time the function is called.
Send_to_char is not optimized!

Davion
--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom



Reply via email to