asp.net| Template
The StringTempletReplet.dll component has updated some algorithms. The main is more dependent on the values in the static variables in memory. Did not change the template in the condition. Caching templates, caching delegates, caching tags parsing data. But this will consume some more memory.
In order to be able to change the template dynamically, you have to test the file time each time. Spent a lot of time on this. It may be possible in the future to remove the feature of the dynamic replacement template, providing only one interface that notifies the template class which template file to reread.
Cancel this page (Retuenstring.aspx--Accept the tag string to return the parse result) after all, the label does not make a scripting language. This feature has no meaning.
Some people say you don't know. Use this template class briefly here:
The main function of a template class is to read a template that is not an entire page. Mainly read the page fragment template. is to read fragments, parse, show. In the web2.0 site, such as blog development. User-defined Skin page. or the full static page news system update is very important.
The function of the label is extended by the tag parsing function. So the speed of the template class is not just the speed at which the StringTempletReplet.dll component itself executes. Also add the label to parse the execution time of the function. My example provides a tag parsing function that simply returns a simple string. To make it easier to say something. The template class does nothing but provide a stage. And try to make the template class execute faster. As for the label parsing function is always executed. How much time is spent. That's what it's like to use people.
The regular substitution template class is also written. But test yourself for label positioning analysis on a string of length more than 2 million. More than 8 times times slower than the pointer positioning. When the length of the template string is decreasing. Maybe the gap will be long and narrow. But even the two tags are positioned in the same time. Depending on the character of the string, the constant substitution of a string produces a new string. Consumes too much resources.
Business.cs can be placed on the UI layer or on the logical layer. As long as you inherit the FunctionList class. Inheriting this class simply overrides the static constructor. Creates a corresponding label and label execution function within a static constructor. In fact, in the previous version has written a kind of execution tag. is the tag name before the "execute _" tag {$ execution _ tag name: Parameter 1: Parameter 2: Parameter 3:: Character 10$} This does not need to override the static constructor. is performed by reflection. But the speed is very slow. Then it was canceled. After all, speed is critical for template classes.
I do not have a fixed position to allow everyone to download, before the compressed file should be a GIF image. Uploaded to NetEase's personal data. But then netease to test the picture. Let everybody down. I'm looking for a new location. The location of the picture is changeable.
Now it's http://www.93913.com/Edit_html/UploadFile/20065/200652205536669.gif .
As long as the picture has not been deleted. You can change the picture in this position to Templet.rar file.