In the following two scenarios:
AND
my queries are
1. which of these codes will be faster (assuming that processdata is called a lot of times during CLV loading)
2. will having many parameters passed through call reduce performance or it will be barely noticeable ?
Thanks
B4X:
....
processData (bv as view,..........)
....
private sub processData(bv as view,....)
.....
bv.add(somepanel,......)
end sub
AND
B4X:
....
somepanel = processData (some params..........)
bv.add ( somepanel, .......)
....
private sub processData(some params....) as somepanel
.....
return somepanel
end sub
my queries are
1. which of these codes will be faster (assuming that processdata is called a lot of times during CLV loading)
2. will having many parameters passed through call reduce performance or it will be barely noticeable ?
Thanks