|
pkmonster 发表于 2012-11-4 08:44 ![]()
这个递归函数的性能, dm7与dm6相比,确实略有退步,主要原因是dm7采用了类似JAVA虚拟机的异常表, 还有为了支持 ...
linux上的dm7
SQL>conn sysdba/sysdba
conn sysdba/sysdba
服务器[LOCALHOST:5236]:处于普通打开状态
使用普通用户登录
登录使用时间 :3.820(ms)
SQL>create function f1(x integer) return integer as
create function f1(x integer) return integer as
2 begin
3 if x <= 2 then
4 return 1;
5 end if;
6 return f1(x - 1) + f1(x - 2);
7 end;
8 /
操作已执行
已用时间: 5.239(ms).Execute id is 521.
SQL>select f1(30) from dual;
select f1(30) from dual;
行号 f1(30)
---------- -----------
1 832040
已用时间: 882.173(ms).Execute id is 522.
SQL>select f1(35) from dual;
select f1(35) from dual;
行号 f1(35)
---------- -----------
1 9227465
已用时间: 00:00:09.750. Execute id is 523.
SQL> |
|