Comments (1)
So There's a "issue-5" branch where I've enabled parsing function in parameters.
It works, however the regex to extract the params is a lot more complex.
https://github.com/soundstep/soma-template/blob/issue-5/src/2.settings.js#L76
versus
https://github.com/soundstep/soma-template/blob/master/src/2.settings.js#L75
That makes the lib slightly slower, even if you don't it as this regex is used constantly.
Master benchmarks:
- render text node x 23,706 ops/sec ±1.77% (74 runs sampled)
Issue-5 benchmarks:
- render text node x 21,470 ops/sec ±1.76% (90 runs sampled)
Benchmarks are on the repo:
https://github.com/soundstep/soma-template/tree/master/benchmarks
I need to finish to write the tests for the regex on issue-5, but as there are other solutions by passing only parameters, I'm not sure I'll add this functionality if I don't find a way to optimize and get performance.
I'll think about it.
from soma-template.
Related Issues (20)
- data-repeat undefined parameter HOT 1
- Setting value should use the content attribute HOT 3
- angular like "filters" in data-repeat HOT 2
- Update Typescript definition HOT 1
- demos/people doesn't work under Firefox HOT 1
- Can't pass arguments to helper function nor perform arithmetic operations. HOT 2
- missing license and copyright HOT 2
- data-click type events not working on iOS
- 2 questions HOT 2
- conditional if/else ? HOT 6
- Possible confusion involving template re-compilation HOT 2
- Run-time compiled templates not initialising nested templates HOT 1
- Template constructor, named variables not honored HOT 1
- soma-template swallowing errors in services, templates HOT 2
- data-repeat incorrectly rendering when initially blank, then subsequently rendered with items HOT 1
- Late instantiation of templates doesn't work as expected
- data-skip attributes from scoped variables (Tokens) HOT 2
- Make the docs more clear about the use of npm install HOT 2
- data-enabled attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soma-template.