Optimized Method to parse a file that contains delimited tags
This method parse a file that contains tags delimited by a char such as $mytag$ for example.
The optimization is due to the way the file is parsed. Instead of using a split that deald with double memory using (one for the file, another for the splitted string), is uses 2 buffers, one for source, and one for destination.
When starting, the destination is empty, and during the process, it is fill progressively while the source is reduce as well. At the end of the process, the source is empty. That way, the same quantity of memory is used along the global execution.
this can be very useful to parse html pages for example, and fill several INPUT or other Tags with values you need on Load…