.
D 2008-04-28T23:47:33
J assignee dkf
J cmimetype text/plain
J comment So\sfar,\sthe\sCONCAT1\sinstruction\sgoes\sthrough\sthe\sstring\sreps\sof\sall\sobjects,\seven\swhen\sall\sare\sbyte\sarrays.\sThis\scompromises\sperformance\sin\sheavy\sbyte-juggling\scode\ssince\sit\smeans\sconverting\sback\sand\sforth\sto\sUTF-8.\sThis\sis\sodd\ssince\s[string\srange]\set\sal.\sdo\shave\san\soptimization\sfor\sthe\sbyte\sarray\scase.\n\nThe\sattached\spatch\s(against\s8.5.1)\sfixes\sthat,\sby\sfirst\slooping\sthrough\sall\sto-be-concatenated\sobjects\sto\scheck\swhether\sthey\sare\sall\sbyte\sarrays\s(or\sempty\sstrings).\nIn\sthat\scase,\sall\soperations\sare\sdone\sat\sbyte\sarray\slevel,\swhile\skeeping\sthe\svery\ssame\slogic\sregarding\sin-place\soperation\sif\spossible\s(unshared\sfirst\sobject).\n\nMoreover,\sthe\sinclusion\sof\sthe\sempty\sstring\scase\sallows\sfor\sthe\s"K-free\sK"\sidiom\s$x[set\sx\s{}],\swhich\sin\sthe\send\sallows\sthe\sfollowing\sin-place\sbyte\sarray\sgrowing\soperation:\n\n\s\s\s\s\s\sset\sx\s$x[set\sx\s{}]$y\n\nTest\ssuite\sOK,\sand\sstepped\sthrough\sgdb\sto\scheck\smost\sbranches.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter ferrieux
J subsystem 12.\sByteArray\sObject
J title CONCAT1\sof\sByteArrays
J type Patch
K 1953758fffffffffffffffffffffffffffffffff
U ferrieux
Z b73ba6f6f2b37adf66a5d3471b221ee3