Optimize Informix® GLS
You can optimize the functions
by performing the following tasks:
- Evaluate the requested function.
- Determine if the requested function is appropriate for the data that you are trying to process.
- Execute the code that is appropriate for the type of data.
For example, if you use the ifx_gl_mbsnext() function to traverse data that is encoded in a single-byte code set, the function is reduced to a macro that advances the character byte by byte. The function does not execute code that parses multibyte sequences because it determines that the data is single byte.
Additionally, when collation is based on code-set order rather than locale-specific order, functions use a binary compare (such as strcmp()) instead of algorithms that examine collation weights.