Martin v. Löwis wrote: > M.-A. Lemburg wrote: >> What do you think ? > > I think the size could be further reduced by restricting the set of > error codes. For example, if the COM error codes are left out, I only > get a Python file with 60k source size (although the bytecode size > is then 130k). I'm not sure whether GetLastError can ever return a COM > error code, but in my experience, it never did. I was leaving those out already - only the codes named 'ERROR_*' get included (see attached parser and generator). > I wouldn't want to introduce a clumsy interface just to achieve space > savings. If people consider the space consumption of 200k disk > size unacceptable (or would never use the module because of the runtime > size effects), the entire idea should be dropped (IMO). OTOH, I don't > find such a size increase unacceptable myself. Using a lookup object is not really clumsy - you can still access all the values by attribute access. The only difference is that they don't live in the module namespace, but get accessed via an object. I'm not worried about the disk space being used. The heap memory usage is what's worrying: the import of the module lets the non-shared memory size of the process grow by 700kB on my AMD64 box. Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, May 13 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: makewinerror.py Url: http://mail.python.org/pipermail/python-dev/attachments/20060513/3e74d7d3/attachment.asc
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4