C++ routine vs. Convert function performance
Posted: Thu May 28, 2015 6:33 pm
I have programed in C/C++ for many years. It is coming back slowly though.
I currently use this code in a transformer stage, in a PX job, to replace certain Ascii control characters to space in free format text fields:
Convert(Char(0):Char(10):Char(13),' ', link.column)
Then i stumbled on this thread from some time ago:
viewtopic.php?t=132495
I kinda understand what the code does but i am wondering if the performance of my original Convert function is better or worse than the C routine in the thread?
C obviously has overhead associated with it in terms memory allocation etc.
Is the Convert function written in C++ as well?
I currently use this code in a transformer stage, in a PX job, to replace certain Ascii control characters to space in free format text fields:
Convert(Char(0):Char(10):Char(13),' ', link.column)
Then i stumbled on this thread from some time ago:
viewtopic.php?t=132495
I kinda understand what the code does but i am wondering if the performance of my original Convert function is better or worse than the C routine in the thread?
C obviously has overhead associated with it in terms memory allocation etc.
Is the Convert function written in C++ as well?