Re: Immutable Datastructures with good Sharing
- From: Arved Sandstrom <asandstrom3minus1@xxxxxxxxxxx>
- Date: Sat, 05 Nov 2011 22:13:49 -0300
On 11-11-05 09:20 PM, markspace wrote:
On 11/5/2011 1:41 PM, Jan Burse wrote:
Arne Vajhøj schrieb:
How do you know that the clone solution use more CPU than
the solution you are looking for now??
It has been proven for the stack.
I'd like to see that proof. I think this is the fundamental disconnect
most people are having on this thread. What is an immutable stack
actually good for? There's nothing that comes to my mind.
Concurrency. Immutable data structures help in that environment -
nothing special about stacks in that regard.
If you are actually really cloning, or copying everything. If you areBut a friend of mine implemented the same application,
and he has a different solution for the queue and
is orders of magnitude faster.
Cloning or copying has got to be slow. I'd bet this is why your
solution is slow, even if you don't realize it.
looking to implement efficient persistent data structures then the only
bits you copy are the modified bits. The unmodified bits are shared, and
are still immutable.
AHS
--
You should know the problem before you try to solve it.
Example: When my son was three he cried about a problem with his hand. I
kissed it several times and asked him about the problem. He peed on his
hand.
-- Radia Perlman, inventor of spanning tree protocol
.
- References:
- Immutable Datastructures with good Sharing
- From: Jan Burse
- Re: Immutable Datastructures with good Sharing
- From: Jan Burse
- Re: Immutable Datastructures with good Sharing
- From: Jan Burse
- Re: Immutable Datastructures with good Sharing
- From: Eric Sosman
- Re: Immutable Datastructures with good Sharing
- From: Jan Burse
- Re: Immutable Datastructures with good Sharing
- From: Arne Vajhøj
- Re: Immutable Datastructures with good Sharing
- From: Jan Burse
- Re: Immutable Datastructures with good Sharing
- From: Arne Vajhøj
- Re: Immutable Datastructures with good Sharing
- From: Jan Burse
- Immutable Datastructures with good Sharing
- Prev by Date: Re: Source code representation
- Next by Date: Re: Cannot connect https using tomcat (keytool) gives an error 500
- Previous by thread: Re: Immutable Datastructures with good Sharing
- Next by thread: Re: Immutable Datastructures with good Sharing
- Index(es):
Relevant Pages
|