Project

Profile

Help

Bug #2321

closed

Function inlining

Added by Michael Kay about 9 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2015-02-28
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

We should do some experiments with function inlining. (a) the limit on expression size for inlining is fixed at 15, which seems rather low. BaseX defaults the limit to 100, and makes it configurable. (b) we don't inline a function if it contains any calls to user-defined functions. I think this is to prevent infinite recursion. But it doesn't seem necessary: the expansion would stop when we hit the size limit.


Files

taskBug.xsl (1.71 KB) taskBug.xsl Debbie Lockett, 2019-01-16 13:09
taskBug2.xsl (3.24 KB) taskBug2.xsl Debbie Lockett, 2019-01-16 19:28

Please register to edit this issue

Also available in: Atom PDF