Ah. I think we have a terminology mix up. I was referring to the
internal subroutine, not an external subroutine (why did they have to
call the external code a subroutine as well!)

Yes, external subroutines do invoke a much larger overhead. From my
testing previously, I believe it first checks the VOC, then the local
catalog and lastly the global catalog.

>From my testing with the aforementioned project, directly cataloguing in
the VOC results in noticeably faster calling than code that is
catalogued globally. I don't have time at work at the moment do the
tests again, I might try after I finish the day.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of DavidJMurray
(mvdbs.com)
Sent: Tuesday, 8 February 2011 11:27 AM
To: [email protected]
Subject: Re: [U2] Does UV have a "BLOCK" command


Dan,

Interesting stuff. How was the subroutine cataloged? At all?

Is there not a hierarchical system that UniBasic goes through attempting
to find the subroutine?

I would have thought the search would have taken significantly more
effort as it may have to read from multiple files; the current BP file,
the VOC, memory etc.

All interesting stuff.


Dan McGrath-2 wrote:
> 
> I had many months ago as part of a project I'm working on (performance

> pre-processor for UniBasic).
> 
> 
> It's quite clear from the above timings that the line count is a 
> bigger performance overhead then using GOSUB/RETURN
> 
> 
> Sorry for the overkill :)
> 
> 


-----

Learn and Do
Excel and Share


http://mvdbs.com http://mvdbs.com
--
View this message in context:
http://old.nabble.com/Does-UV-have-a-%22BLOCK%22-command-tp30867376p3086
9331.html
Sent from the U2 - Users mailing list archive at Nabble.com.

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
###########################################################################################
The information transmitted in this message and attachments (if any) is 
intended only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###########################################################################################
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to