From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,626a77ea0b9763aa,start X-Google-Attributes: gidfee84,public From: "Jeroen J. Dirks" Subject: Slow malloc / cartesian_insert cartesian_alloc keep_malloc Date: 1996/09/24 Message-ID: <32486A4A.16E6@tor.numetrix.com>#1/1 X-Deja-AN: 185127706 x-xs4all-date: Wed, 25 Sep 1996 01:10:03 MET DST x-xs4all-user: djmdirks@xs4all.nl on hp56.numetrix.com content-type: text/plain; charset=us-ascii organization: Numetrix Limited mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0b6Gold (X11; I; HP-UX A.09.05 9000/712) The alpha port of one of our products is very slow during the loading of a file (which uses a lot of XtMalloc calls) Here are some of the functions that get called: (ctrl-c in decladebug followed by where) >0 0x120513d7c in cartesian_insert(0x1205154a8, 0x14051d100, 0x14051d100, 0x3, 0x11fffc4d8, 0x1401bb830) ../../../../../../src/usr/ccs/lib/libc/malloc.c:1884 #1 0x120514c18 in cartesian_alloc(0x28, 0x40, 0x1200d88d0, 0x0, 0x2, 0x100000000) ../../../../../../src/usr/ccs/lib/libc/malloc.c:1518 #2 0x120514dac in keep_malloc(0x2, 0x11fffa750, 0xffffffffffffffff, 0x140331350, 0x120514db0, 0x19) ../../../../../../src/usr/ccs/lib/libc/malloc.c:757 #3 0x120515a00 in malloc(0xffffffffffffffff, 0x1, 0x11fffc4d8, 0x1401bb830, 0x11fffcab0, 0x0) ../../../../../../src/usr/ccs/lib/libc/malloc.c:745 #4 0x12044a6a4 in XtMalloc(0x11fffcab0, 0x0, 0x1200da778, 0x51, 0x1200dad84, 0x100000002) Alloc.c:128 Why does this malloc do all this extra work? compiler options: -g linker options: -g2 -O1 -non_shared Should I use other compiler/linker options? P.S. we have OSF1 V3.2 214 alpha -- ========================- Jeroen J. Dirks -========================== email: jeroend@tor.numetrix.com tel: +1 416 979 6797 x160 Numetrix Limited (http://www.numetrix.com) fax: +1 416 979 9504 --------------------------------------------------------------------- 655 Bay Street Suite 1200 Toronto Canada M5G 2K4