Skip to content
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

Fixes: #14 by upgrading to broccoli-persistent-filter #15

Merged
merged 2 commits into from
Mar 7, 2016
Merged

Fixes: #14 by upgrading to broccoli-persistent-filter #15

merged 2 commits into from
Mar 7, 2016

Conversation

thoov
Copy link
Contributor

@thoov thoov commented Nov 4, 2015

Upgrading broccoli-filter to broccoli-persistent-filter which addresses @stefanpenner performance issue (#14)

@joliss
Copy link
Owner

joliss commented Nov 6, 2015

@stefanpenner, does this look good to you?

@stefanpenner
Copy link

@joliss yes it looks good.

I will quickly try it out to confirm. (ill look in like 15 min)

@stefanpenner
Copy link

just confirmed with a new app (with a few coffee-script files added) that all appears to work, and IO op and cost dropped as expected.

I don't have a large app, but i suspect that is fine. If issues arise we can fix them :)

@johnnyshields
Copy link

@joliss I have a large app with a lot of coffeescript files, I tested this branch -- it works fine and cuts my coffeescript-specific build time to 15% of what it was on rebuilds.

@johnnyshields
Copy link

@joliss please merge and cut a release soon 👍

}

CoffeeScriptFilter.prototype.extensions = ['coffee', 'litcoffee', 'coffee.md']
CoffeeScriptFilter.prototype.targetExtension = 'js'
CoffeeScriptFilter.prototype.baseDir = function() {
return __dirname;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I put a throw new Error('x') statement in front of the return, the test suite still passes. It looks like this method never runs. Surely that can't be right?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When options.persistent = true is provided (it may want to be enabled by default) this code-path is taken.

persistent mode is opt-in, but the tests should stress it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. I agree it seems reasonable to make it on-by-default. (It'd seem very strange for the user to enable or disable persistent caching on a per-plugin basis.) Is on-by-default what you do with other plugins?

the tests should stress it.

Yes, definitely, at least a smoke test to exercise the code path.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it options.persistent or options.persist?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefanpenner
Copy link

@joliss some fast plugins leave it off by default, as they still benefit enormously from the patch based rebuilds. for CS it should very likely be enabled by default

@johnnyshields
Copy link

@joliss please help merge this PR. Have been using it for over 2 weeks without issue.

@joliss
Copy link
Owner

joliss commented Nov 25, 2015

@johnnyshields I can't merge this as it is - see the discussion above. I'm waiting on a new push from @thoov.

@thoov
Copy link
Contributor Author

thoov commented Nov 27, 2015

@joliss @johnnyshields I have updated the PR. I have also turned persist on by default.

@johnnyshields
Copy link

@joliss pinging on this issue, please kindly merge and cut a release if it's satisfactory.

@stefanpenner
Copy link

@joliss hola?

@stefanpenner
Copy link

@joliss ping

@stefanpenner
Copy link

@joliss as per our discussion, i have confirmed (in an although simple app, that add/update/remove/move etc seem to work).

I will gladly deal with any bugs/issues that fall-out, I only need commit + release so I can do so without having to bug you.

joliss added a commit that referenced this pull request Mar 7, 2016
Fixes: #14 by upgrading to broccoli-persistent-filter
@joliss joliss merged commit f4e309f into joliss:master Mar 7, 2016
@joliss
Copy link
Owner

joliss commented Mar 7, 2016

Out in 0.6.0, thanks everyone! :)

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

Successfully merging this pull request may close these issues.

None yet

4 participants