[Gambas-user] Call modules with _call

Brian G brian at westwoodsvcs.com
Sat Jan 30 19:24:23 CET 2021


Strangely with the profiler, it appears that the _call() functions run faster than the functions in a module directly.... 
Interesting. 

Thank You 
Brian G 


From: "Brian" <brian at westwoodsvcs.com> 
To: "Gambas mailing list" <user at lists.gambas-basic.org> 
Sent: Saturday, January 30, 2021 5:40:26 PM 
Subject: [Gambas-user] Call modules with _call 


How much overhead does creating a module by name with a _call entry point create 
compared to a direct call in the current module file. 
example 
mmmail module contains this: 
public sub main() 
doThis() 
end 

doThis Module contains this: 
public sub _Call() 
print "hi" 
end 

as opposed to 
mmain module contains this: 

public sub main() 
doThis() 
end 

public sub doThis() 
print "hi" 
end 

I guess the question is how does gambas make the link at runtime 

Maybe Benoît could answer this 

Thank You 
Brian G 


----[ http://gambaswiki.org/wiki/doc/netiquette ]---- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210130/398e4910/attachment-0001.htm>


More information about the User mailing list