[maxmsp] Re: the most efficient ?
Leafcutter John
thetawnyowl at googlemail.com
Thu Aug 2 14:24:43 MDT 2007
- Previous message: [maxmsp] Re: the most efficient ?
- Next message: [maxmsp] Re: the most efficient ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The uzi > counter method (shown below) is one way of timing how long it takes max to accomplish a set number of tasks. Your question was about efficiency and this kind of timing is one way of measuring efficiency. Sometimes it can be very important when objects are constantly being polled or have to prosses large amounts of data. I agree with Stefan about clarity being an excellent goal - however a check of speed can be very useful as in the following example which shows how occasionally the more complex solution can be much much more efficient.... #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 493 105 26 196617 time; #P flonum 431 102 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 431 52 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 431 76 55 196617 p cputimer; #P newex 357 88 40 196617 uzi 10; #P comment 448 52 26 196617 test; #P comment 216 89 26 196617 time; #P flonum 154 86 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 154 36 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 154 60 55 196617 p cputimer; #P newex 80 72 40 196617 uzi 10; #P message 357 133 182 196617 laptopHD://give/me/a/path/to/strip; #P message 391 328 177 196617 strip; #P newex 391 300 62 196617 prepend set; #P newex 357 181 79 196617 t l l 0; #P newex 438 194 68 196617 loadmess 47; #P newex 391 273 32 196617 itoa; #P newex 357 252 44 196617 zl slice; #P newex 391 215 57 196617 zl sub 47; #P newex 357 160 32 196617 atoi; #P message 80 267 177 196617 strip; #P newex 80 239 62 196617 prepend set; #P message 80 162 182 196617 laptopHD://give/me/a/path/to/strip; #P newex 80 208 82 196617 strippath; #P comment 171 36 26 196617 test; #P fasten 22 0 20 0 436 70 362 70; #P connect 22 0 21 0; #P connect 20 0 13 0; #P connect 21 0 23 0; #P fasten 20 2 21 1 392 110 423 110 423 97 491 97 491 71 481 71; #P fasten 16 0 14 0 159 54 85 54; #P connect 16 0 15 0; #P connect 14 0 2 0; #P fasten 14 2 15 1 115 94 146 94 146 81 214 81 214 55 204 55; #P connect 15 0 17 0; #P connect 13 0 5 0; #P connect 8 0 11 0; #P connect 11 0 12 0; #P fasten 10 2 7 1 430 206 379 206 379 246 396 246; #P connect 5 0 10 0; #P connect 10 0 7 0; #P connect 10 1 6 0; #P connect 6 0 7 1; #P connect 7 1 8 0; #P connect 9 0 6 1; #P connect 3 0 4 0; #P connect 1 0 3 0; #P connect 2 0 1 0; #P window clipboard copycount 25; Best, John. -- http://www.leafcutterjohn.com "The Forest And The Sea" Out on Staubgold Records Staubgold 68 CD/LP
- Previous message: [maxmsp] Re: the most efficient ?
- Next message: [maxmsp] Re: the most efficient ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
