[Info-vax] Python for x86?
Arne Vajhøj
arne at vajhoej.dk
Wed May 3 12:43:22 EDT 2023
On 5/3/2023 11:45 AM, Arne Vajhøj wrote:
> On 5/2/2023 1:27 PM, Simon Clubley wrote:
>> std::string would be interesting here if you have access to a C++
>> compiler.
>
> C++ on Alpha simulator gives 0.005.
Note that is with an inner loop of:
for(int j = 0; j < N / VMS_FACTOR; j = j + 10)
{
s = ALFA + ALFA;
int ix = (i + j) % ALFA.length();
buf.append(s, ix, 1);
buf.append(s, ix + 1, 2);
buf.append(s, ix + 3, 3);
buf.append(s, ix + 6, 4);
}
not:
for(int j = 0; j < N / VMS_FACTOR; j = j + 10)
{
s = ALFA + ALFA;
int ix = (i + j) % ALFA.length();
buf = buf + s.substr(ix, 1) + s.substr(ix + 1, 2) +
s.substr(ix + 3, 3) + s.substr(ix + 6, 4);
}
That ones gives 0.004 - and without the VMS_FACTOR then that
one would totally die performance wise.
Arne
More information about the Info-vax
mailing list