[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multithreading question
From: |
Marcus G. Daniels |
Subject: |
Re: Multithreading question |
Date: |
Wed, 29 Jan 2003 15:45:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3b) Gecko/20030117 |
it's probably true that in my case the real bottleneck is not Swarm's
expensive way of passing messages to the members of the list (uhm, a
10x speedup of your code? I think I need to check that
createActionForEach CPU-eater more closely, in Swarm's source); still
it looks a really neat trick that might help save many CPU cycles in
those cases when one, after prototyping in Swarm, doesn't feel like
restarting from scratch in C++ or Fortran or whatever, as Glen suggested.
-[at:]createFActionForEachHomogeneous:call: will give better performance
than a C `for' loop that just reissues the messages in one place. It
will lift the message dispatches out of the loop and do the same for
loop on your behalf. Use a C `for' loop if you can trivially remove all
message-sends from inside the loop. You can even have the FCall passed
to this method be a simple function call.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- RE: Multithreading question, (continued)
- RE: Multithreading question, gepr, 2003/01/29
- RE: Multithreading question, Bill Northcott, 2003/01/29
- Re: Multithreading question, Marcus G. Daniels, 2003/01/30
- Performance issues, Bill Northcott, 2003/01/30
- Re: Performance issues, Marcus G. Daniels, 2003/01/31
- Re: Performance issues, Steve Railsback, 2003/01/31
- Re: Performance issues, Marcus G. Daniels, 2003/01/31
Re: Multithreading question, Matteo Morini, 2003/01/29
RE: Multithreading question, Darold Higa, 2003/01/29
Re: Multithreading question, Marcus G. Daniels, 2003/01/29
Re: Multithreading question, Gregory R Madey, 2003/01/29
Re: Multithreading question, Matteo Morini, 2003/01/30