Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Performance tweak - caching of ReFindNoCaseValues results #6

Merged
merged 2 commits into from
Apr 5, 2012

Conversation

markmandel
Copy link

I set up a cache for ReFindNoCaseValues() so that it didn't have to re-regex the template on each request.

Also tweaked some variable resolution for maximum speed.

@rip747
Copy link
Owner

rip747 commented Apr 5, 2012

thank you once again!

rip747 added a commit that referenced this pull request Apr 5, 2012
Performance tweak - caching of ReFindNoCaseValues results
@rip747 rip747 merged commit e8d338b into rip747:master Apr 5, 2012
@dswitzer
Copy link
Collaborator

dswitzer commented Apr 5, 2012

I wonder if the better long term solution would be to add a compiler, instead of always re-interpreting template. Use some a basic lexical parser that converts everything into a token array that we can loop over quickly and process.

I like what a lot of JavaScript templating engines do, they compile the template into executable code--which is slick--but not a great option for ColdFusion.

@rip747
Copy link
Owner

rip747 commented Apr 5, 2012

that would actually be a good thing to have. you can look at the cfml-liquid project to see how it's done if you need some inspiration.

@markmandel
Copy link
Author

Started issue #7 to start talking about a compilation system.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants