in reply to Re^14: Slow evolution of Perl = Perl is a closed Word (thread decade)
in thread Slow evolution of Perl = Perl is a closed Word
That still involves passing objects from thread to thread
No. Objects do not spring into existance, they are initialised from some source. In the examples above, that source is a byte stream from a keyboard or a simple data structure created from a DB-sourced datastream.
Strings, and hashes or arrays. These can be cached in the originating thread and shared for passing between threads. They only get constituted into objects within the thread that is going to use them. The initialisation data just stays in the form in which it originates until it is passed to the therad that needs the object.
So there is no marshalling/unmarshalling involved, just delayed object creation/initialisation.
|
---|