[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.120,2.121
Fred L. Drake, Jr.
fdrake@acm.org
Thu, 16 Dec 1999 12:19:23 -0500 (EST)
[Note that Greg's message went to python-checkins since he responded
to a checkin message, but I suspect he meant to change the header to
point to python-dev. ;) If not, too bad!]
Greg Stein writes:
> But this means that your tables no long reside in "const" space. Yet More
> Per-Process Memory...
>
> It would be nice to have those tables marked as "const".
Perhaps; as Guido points out, there haven't been a lot of complaints
about this issue.
I will note that only the tables aren't constant; the strings that
are pointed to are still constant. I'm inclined to let the compiler/
linker care about this, and not change the code without a really clear
need to do so.
Here are the sizes of those tables and the strings they point to
(including terminating null bytes for the strings):
pathconf_names: 14 entries, 112 bytes, 176 string bytes
confstr_names: 25 entries, 200 bytes, 576 string bytes
sysconf_names: 108 entries, 864 bytes, 1774 string bytes
Figures are for Solaris7.
-Fred
--
Fred L. Drake, Jr. <fdrake@acm.org>
Corporation for National Research Initiatives