OpenToken Advanced Performance
See also: OpenToken Parsing
Return to Introduction  Previous page  Next page

Advanced Performance

You can further enhance the performance of OpenTokens (and your module) by preparing (or "pre-processing") the OpenTokens string. This is done by calling this function:

<MvFUNCTION NAME = "OUI_Token_Prepare" PARAMETERS = "data, nohooks" STANDARDOUTPUTLEVEL = "">  

To use this function, you pass in the textual OpenTokens string. This function will convert all ASCII tokens to their binary equivalent, which will speed up the processing of your tokens.

Take the returned binary equivalent, and when ready to display to your shoppers, pass this to the
OUI_Token_Replace() 
function, instead of the original ASCII text version.

The l.nohooks parameter will tell the OUI_Token_Prepare() function to remove all of the following tags:

·%HOOK%  
·%HOOKSKIP% and %HOOKSKIPEND%  
·%TRACE()%  
·%COMMENT% and %COMMENTEND% (and everything in-between)  

 


Send feedback on this documentation.
© 2004 - 2000 Darren Ehlers & OpenUI Developer Consortium