Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

perf: Collect list of source files only once #1486

Merged
merged 3 commits into from
Jul 31, 2017

Conversation

pvojtechovsky
Copy link
Collaborator

This is the implementation of FileCompilerConfig constructor which was originally called:

public FileCompilerConfig(SpoonFolder folder) {
	this(folder.getAllJavaFiles());
}

That call can be avoided because we already have a list of all files in variable sourceFiles.

@surli
Copy link
Collaborator

surli commented Jul 31, 2017

This is the implementation of FileCompilerConfig constructor which was originally called

Then this constructor of FileCompilerConfig is unused, right? Shouldn't we removed it?

@pvojtechovsky
Copy link
Collaborator Author

Yes, it is unused.

Shouldn't we removed it?

I agree with remove. But may be correct is to mark it as Deprecated and remove it later? I do not know if anybody uses it anywhere ... it is public API.

@surli
Copy link
Collaborator

surli commented Jul 31, 2017

mark it as Deprecated and remove it later

yes let's do that

@pvojtechovsky
Copy link
Collaborator Author

Done

@surli surli merged commit 72146e8 into INRIA:master Jul 31, 2017
@pvojtechovsky pvojtechovsky deleted the perfCollectSourceFilesOnce branch July 31, 2017 19:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants