[parrot/parrot] 54fa00: [GH #893] improve concurrent say. concat with \n, ...
GitHub
noreply at github.com
Wed Dec 26 15:08:02 UTC 2012
Branch: refs/heads/rurban/threaded-say-gh893
Home: https://github.com/parrot/parrot
Commit: 54fa00fa62e328d854baff38575028c8067cedc6
https://github.com/parrot/parrot/commit/54fa00fa62e328d854baff38575028c8067cedc6
Author: Reini Urban <rurban at cpanel.net>
Date: 2012-12-26 (Wed, 26 Dec 2012)
Changed paths:
M src/ops/core_ops.c
M src/ops/io.ops
Log Message:
-----------
[GH #893] improve concurrent say. concat with \n, then puts
Provide better atomicity with threads. To avoid mixing strings with
newlines in most cases. This is not foolproof of course.
concat only if it will not extend the already allocated buffer to
avoid copying.
make bootstrap-ops for say
Commit: 9179538f4c34fc41c5d7d9822fb2a6425a03b454
https://github.com/parrot/parrot/commit/9179538f4c34fc41c5d7d9822fb2a6425a03b454
Author: Reini Urban <rurban at cpanel.net>
Date: 2012-12-26 (Wed, 26 Dec 2012)
Changed paths:
M src/ops/core_ops.c
M src/ops/io.ops
M t/op/say.t
Log Message:
-----------
[GH #893] Refactor better atomic say op: test for 80% success, concat if the buflen < 80
Since even SREGs are constant, Parrot_str_concat will always create a copy. So allow small cheap copies.
Compare: https://github.com/parrot/parrot/compare/3999a3b94d07...9179538f4c34
More information about the parrot-commits
mailing list