Attached are two patches that try to reduced the size of the generated code.

One makes codegen use a loop to call pyg_boxed_check instead of
inlining all calls. This reduced the C code size, but not the
resulting binary (tested on a amd64).

The other one defines a generic getter for gints and makes codegen
call it. This marginally reduces the code size. A much bigger
improvement would be to store the offset in the self pointer and
remove functions like _wrap_gtk_requisition__get_width.

Rafael

Attachment: pygtk-get-gint.patch
Description: Binary data

Attachment: pygtk-pyg_boxed_check.patch
Description: Binary data

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to