Tag Info

New answers tagged

0

If you expected more reads than writes a generally safe bet is ReaderWriterLockSlim which allows concurrent threads to read data, but only one thread may be a writer at a time. You did mention concurrent lists and dictionaries, is there a reason that ConcurrentDictionary<,> doesn't work for this situation? I have found it to be quite performant and far ...


0

How about: // any child object should freeze when this object freezes... interface IFreazableCloanable { bool IsFrozen { get; } // Any further attempts to change the object should throw an Exception void Freeze(); // Creates mutable Clone of the object IFreazableCloanable DeepCloneMutable(); } class SyncedObject<T> where T : ...


0

I've implemented SCrypt libraries both on the clientside and serverside using js-scrypt and CryptSharp, and found the results shocking. With chrome, execution time was over twice as fast as the .net implementation. I never really paid much attention to the V8 engine until I observed these performance results, but now I have a very healthy respect for ...


10

Let's have a look at the second claim. The JavaScript reactor pattern will always handle concurrency better than any multi-threaded application. To address this claim, I'm going to assume that concurrency in this context equates to scalability, since scalability is one of the primary motivations behind Node.JS. The distinction is subtle, but ...


6

My question is 1) is this true No, this is complete and utter nonsense. Automatic parallelization of code that wasn't explicitly written to be parallel has been (one of) the holy grail(s) of optimizers for decades, but it still doesn't work for anything but the most trivial cases. Even just figuring out whether a piece of code has side-effects at all, ...


1

Answer to 1 --its not true! There are very few(none really) compilers/interpreters clever enough to recognise that a calculation can be split into parallel blocks without affecting the result in some way. Several languages have support for parallel computation. Most modern C/C++ and FORTRAN support the OpenMP API which allows the programmer control of ...



Top 50 recent answers are included