| Posted: 10:26am 24 Nov 2025 |
Copy link to clipboard |
 Print this post |
|
Hi Peter, While I agree with what you have said, there are exceptions/problems. I was optimising
Sub mm.user_bitmap(x%,y%,w%,h%,s%,Fc%,Bc%,bitmap%) to Sub mm.user_bitmap(x As Integer,y As Integer,w As Integer,h As Integer, s As Integer,Fc As Integer,Bc As Integer,bitmap As Integer)
and removing all the % in the subroutine, but it actually got slower, presumably because the parser had to parse all those 'As Integer' statements, I got round it by using 'Option Default Integer' but this can't work if there are a mixture of types. Assuming it is the length of the declaration, which slows it down, is a short form possible, relativly easy for you? maybe:-
xyz As %, pqr As %, abc As !, ghi As $ Or even xyz %, pqy %, abc !, ghi $ 'note space
This is of course assuming it is the length of the decleration that is causing the slow down, it may not be.? Regards Kevin. |