00:00:12 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 00:03:26 nikodemus: any idea why row-major-aref is faster on a 1d array than a 3d array? (with speed on and safety off, of course) 00:07:21 slyrus: multidimensional array has 1 extra memory indirection 00:08:13 you can cheat and use either sb-ext:array-storage-vector sb-something::with-array-data to bypass the outer layer 00:09:10 ah, ok, thanks 00:10:04 or if you want portable code, and know that you always have a 3d array, you can do (defstruct 3d-data d0 d1 d2 data-vector) + type information 00:13:26 hrm... the whole point of this is to be able to just use arrays, rather than some struct or class that wraps them 00:17:25 well, with-array-data is faster, but still not as fast as copying the stuff into a 1d array 00:17:53 about 25% slower than the 1d array 00:19:35 adding :force-inline makes things much worse 00:52:03 slyrus: once you've pulled out the data with with-array-data, what you have *is* a 1-d array -- so you need to batch a bunch of operations inside a single with-array-data 00:52:29 but yeah, in my raytracing stuff i use 1d arrays for buffers 00:53:09 romaeno [~proba@cpe-67-244-127-222.nyc.res.rr.com] has joined #sbcl 00:53:55 slyrus: re what arrays look like internally, have a look at compiler/generic/objdef.lisp: array-header is what you have for multidimensional arrays, vector is what you have for 1d simple-arrays 00:55:49 ok, thanks. yeah, I know it's a 1-d array, but the same code seems to be using about 25% more instructions. I'll check the disassembly later. 00:57:44 d'oh 00:57:58 #+nil'ed out the optimize declaration... nvm... 00:59:25 the with-array-data is still a bit worse, but less so, 299M vs. 273M instructions 00:59:33 cycles, sorry 01:04:30 i'm about to hit bed, but if you put some code in email i can look at it in the morning 01:05:33 udzinari [~user@209.158.broadband13.iol.cz] has joined #sbcl 01:23:29 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 01:31:10 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Quit: Leaving] 02:17:02 redline6561 [~user@c-66-56-55-169.hsd1.ga.comcast.net] has joined #sbcl 03:03:50 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 03:19:34 homie` [~user@xdsl-78-35-180-66.netcologne.de] has joined #sbcl 03:22:03 -!- homie [~user@xdsl-78-35-187-232.netcologne.de] has quit [Ping timeout: 250 seconds] 04:05:13 -!- gonzojive [~red@c-71-198-7-84.hsd1.ca.comcast.net] has quit [Quit: Leaving.] 05:14:02 stassats` [~stassats@wikipedia/stassats] has joined #sbcl 07:00:52 tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has joined #sbcl 07:29:35 Jamamooga [~Jamamooga@74-95-42-29-Oregon.hfc.comcastbusiness.net] has joined #sbcl 07:34:35 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 07:48:15 -!- Jamamooga [~Jamamooga@74-95-42-29-Oregon.hfc.comcastbusiness.net] has left #sbcl 08:14:49 -!- homie` [~user@xdsl-78-35-180-66.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 08:16:55 homie [~user@xdsl-78-35-180-66.netcologne.de] has joined #sbcl 09:30:38 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 276 seconds] 09:33:22 tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has joined #sbcl 09:43:12 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 09:43:12 -!- ChanServ has set mode +o nikodemus 10:02:57 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 10:02:57 -!- ChanServ has set mode +o Krystof 10:07:40 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Ping timeout: 272 seconds] 10:10:13 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 10:10:13 -!- ChanServ has set mode +o nikodemus 10:48:37 morning 10:59:04 morning! 11:06:41 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 264 seconds] 11:10:01 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 11:10:01 -!- ChanServ has set mode +o Krystof 11:13:34 it took me an hour to merge 10 patches into CVS from my git tree :/ 11:14:02 granted, they didn't have NEWS entries, and i had to send the commit emails manually ... but still 11:15:27 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 240 seconds] 11:31:51 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 11:31:51 -!- ChanServ has set mode +o Krystof 11:54:59 that's enough committage for now, time for a walk 12:16:34 i've profiled change-class and it revealed that most of the time is spent inside check-initargs-1 12:25:21 hargettp [~hargettp@pool-71-174-130-64.bstnma.east.verizon.net] has joined #sbcl 12:26:08 stassats`: I can imagine 12:26:24 most of the ctor stuff is about semi-statically avoiding full initargs checks 12:43:29 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 12:43:44 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has left #sbcl 13:00:25 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Quit: This computer has gone to sleep] 13:03:09 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 250 seconds] 13:06:34 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 13:06:34 -!- ChanServ has set mode +o Krystof 14:00:11 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 250 seconds] 14:03:47 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 14:03:47 -!- ChanServ has set mode +o nikodemus 14:04:21 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 14:04:21 -!- ChanServ has set mode +o Krystof 14:08:08 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Ping timeout: 246 seconds] 14:30:08 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 14:30:08 -!- ChanServ has set mode +o nikodemus 15:05:21 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 250 seconds] 15:25:58 homie` [~user@xdsl-78-35-142-108.netcologne.de] has joined #sbcl 15:29:19 -!- homie [~user@xdsl-78-35-180-66.netcologne.de] has quit [Ping timeout: 260 seconds] 15:45:04 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 15:45:04 -!- ChanServ has set mode +o Krystof 16:06:56 attila_lendvai [~attila_le@dsl51B6154C.pool.t-online.hu] has joined #sbcl 16:06:56 -!- attila_lendvai [~attila_le@dsl51B6154C.pool.t-online.hu] has quit [Changing host] 16:06:56 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 16:40:53 -!- romaeno [~proba@cpe-67-244-127-222.nyc.res.rr.com] has quit [Ping timeout: 264 seconds] 16:53:31 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 250 seconds] 16:56:30 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 16:56:30 -!- ChanServ has set mode +o Krystof 16:59:09 -!- udzinari [~user@209.158.broadband13.iol.cz] has quit [Ping timeout: 260 seconds] 17:06:10 -!- hargettp [~hargettp@pool-71-174-130-64.bstnma.east.verizon.net] has quit [Quit: Leaving...] 17:41:14 -!- homie` [~user@xdsl-78-35-142-108.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 17:42:37 homie [~user@xdsl-78-35-142-108.netcologne.de] has joined #sbcl 17:43:30 udzinari [~user@209.158.broadband13.iol.cz] has joined #sbcl 17:53:14 udzinari` [~user@209.158.broadband13.iol.cz] has joined #sbcl 17:53:27 -!- udzinari [~user@209.158.broadband13.iol.cz] has quit [Remote host closed the connection] 18:00:07 hargettp [~hargettp@pool-71-174-130-64.bstnma.east.verizon.net] has joined #sbcl 18:04:46 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Quit: This computer has gone to sleep] 18:40:03 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 18:40:03 -!- ChanServ has set mode +o nikodemus 18:45:44 -!- udzinari` [~user@209.158.broadband13.iol.cz] has quit [Ping timeout: 276 seconds] 19:12:47 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 250 seconds] 19:13:13 attila_lendvai [~attila_le@dsl5402B4B3.pool.t-online.hu] has joined #sbcl 19:13:13 -!- attila_lendvai [~attila_le@dsl5402B4B3.pool.t-online.hu] has quit [Changing host] 19:13:13 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 19:28:59 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has left #sbcl 19:44:52 udzinari [~user@209.158.broadband13.iol.cz] has joined #sbcl 20:11:05 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 246 seconds] 20:20:41 -!- stassats` [~stassats@wikipedia/stassats] has quit [Ping timeout: 246 seconds] 20:24:04 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 20:24:04 -!- ChanServ has set mode +o Krystof 21:09:21 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 250 seconds] 21:19:14 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 21:19:14 -!- ChanServ has set mode +o Krystof 21:34:58 Hexstream [~hexstream@modemcable075.97-200-24.mc.videotron.ca] has joined #sbcl 21:49:27 -!- Krystof [~csr21@csrhodes.plus.com] has quit [Ping timeout: 240 seconds] 21:49:56 Krystof [~csr21@csrhodes.plus.com] has joined #sbcl 21:49:56 -!- ChanServ has set mode +o Krystof 22:04:14 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Ping timeout: 260 seconds] 22:07:06 nikodemus [~nikodemus@cs181199216.pp.htv.fi] has joined #sbcl 22:07:06 -!- ChanServ has set mode +o nikodemus 22:21:19 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 22:47:19 lambda-avenger [~roman@adsl-99-20-129-25.dsl.pltn13.sbcglobal.net] has joined #sbcl 23:12:44 -!- nikodemus [~nikodemus@cs181199216.pp.htv.fi] has quit [Quit: This computer has gone to sleep] 23:31:02 -!- Hexstream [~hexstream@modemcable075.97-200-24.mc.videotron.ca] has left #sbcl 23:43:37 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl