Project

General

Profile

Slug #1275

incr and decr are slow

Added by John Abbott almost 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
enhancing/improving
Target version:
Start date:
29 Apr 2019
Due date:
% Done:

0%

Estimated time:

Description

The CoCoA-5 functions incr and decr are disappointingly slow.

>>> t0:=CpuTime();A:=0; for i:=1 to 1000000 do incr(ref A); endfor; TimeFrom(t0);
3.582
>>> t0:=CpuTime();A:=0; for i:=1 to 1000000 do A := A+1; endfor; TimeFrom(t0);
0.747

A completely empty loop takes about 0.1s


Related issues

Related to CoCoA-5 - Feature #518: incr/decr functions: to be used in packagesClosed2014-04-03

Related to CoCoA-5 - Design #364: Incr command/functionClosed2013-06-03

History

#1 Updated by John Abbott almost 5 years ago

  • Related to Feature #518: incr/decr functions: to be used in packages added

#2 Updated by John Abbott almost 5 years ago

Also available in: Atom PDF