-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optional /perf directory for any example proposal #1541
Comments
👍 from me based on comment from #1490 (comment) |
👍 |
SGTM. What about perf-related changes to the logic, as with angular-perf? Do we continue to keep those separate or is that something you want to cover with this proposal as well? |
I would like to kill angular-perf and roll it into normal angular |
@samccone So having |
hmm good question, i was thinking there would be 1 codebase just compiled differently for perf... but perhaps we should allow two codebases because i could think of situations where this would be required |
In theeooory, we could have a |
imho... lets just let some people do the perf version and we can see the demands per each request thoughts? |
@samccone 👍 Let's figure out the details along the way. |
💃 |
I can see some framework authors requiring source specific changes for a perf-optimised version of their app. Would like to keep it flexible so |
You spend too much time on Windows, @addyosmani! 🎪 |
Lol |
😭 🍫 |
As mentioned, the current The difference in performance even caused me some frustrations leading to writing this rebellious answer on StackOverflow. Now there are two different performance stages: initial page load and route change. Many testers coming from outside and writing articles only test the former. However, it is the latter that the user has to deal with every single time after the app is started. As more people come here with testing mind, it may be helpful to
This seems to highlight a major problem here - how differently people see this project with very different purposes:
The problem with "best practices", they may be the best in some cases but not in others. The Todo App here is relatively small, so some of the best practices look bloated and unnecessary. So when you code with the idea to show people best practices, you end up with unnecessarily complex and bloated code that can mislead a newcomer into a wrong judgement about the framework. On the other hand, if you optimise what the framework gives, to get things done fast and short, that may show the framework more appealing to newcomers but may not necessarily be good example to learn best practices from. See New AngularJS HTML Only Implementation for an extreme example :)
|
I think this highlights a problem with the whole concept of adding 'perf' implementations. Does the lack of a 'perf' implementation for a particular framework mean that the canonical implementation is already performance optimised? How 'deep' should the optimisations be? Personally I think it is better to have a single implementation for each framework and instead if someone wants to performance optimise, they write it up as a blog post which we link to in the side menu. |
People kinda already do this... however no one doing these perf checks ever looks or finds them to test against.. In my mind standardizing the way you get to the perf implementation via /perf makes it SUPER simple for people doing this kind of testing to blindly jump to the "production ready" version
^ See my last point on the initial issue
This is kinda up to the person doing it, I am fine with pretty much anything so long as
|
Totally agree with the importance of SUPER simple. |
There is a demand on many fronts to enable "production" versions of todomvc apps.
Any app should be able to add an additional /perf directory
examples/backbone/perf
The folder should contain an index.html file to serve their app in a way that is inline with best practices for said tool/framework.
Requirements for perf
@tastejs/todomvc if everyone is OK with this I know there are several people willing to do a pass on a few implementations
The text was updated successfully, but these errors were encountered: