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

1.12.1 performance regression. #257

Closed
matter123 opened this issue Jun 25, 2019 · 13 comments
Closed

1.12.1 performance regression. #257

matter123 opened this issue Jun 25, 2019 · 13 comments

Comments

@matter123
Copy link
Collaborator

matter123 commented Jun 25, 2019

Screenshot from 2019-06-24 22-53-50

line 3493 is meta.function.definition
line 4427 is :function_call
line 633 is :source_wrapper

Edit: possibly duplicate of #256
Edit: not fixed by #258

@jeff-hykin
Copy link
Owner

Crap what files are those showing up in?

@matter123
Copy link
Collaborator Author

matter123 commented Jun 26, 2019

It is one of my own files, Ill try to find a repro that is a more reasonable size.

@jeff-hykin
Copy link
Owner

if you're okay with it being open sourced, I dont think the size will be an issue if you want to add it to the testing examples

@matter123
Copy link
Collaborator Author

At least in the branch Fix/#260, npm run perf seems to show the issue. I'll create a PR for adding it to the examples in an hour or two.

@jeff-hykin
Copy link
Owner

After running perf I get something like
Screen Shot 2019-06-26 at 5 09 30 PM

How do I know what file that belongs to?

@matter123
Copy link
Collaborator Author

Unfortunately, that information is not recorded.

@jeff-hykin
Copy link
Owner

Ah haha well thats problematic, is there a way to program it in? or is restricted by a library

@matter123
Copy link
Collaborator Author

It's certainly possible, but currently the pattern timing recording doesn't distinguish between files.

@jeff-hykin
Copy link
Owner

Okay I'll work on adding that since I'm not sure how else to debug the slowdown

@matter123
Copy link
Collaborator Author

My best bet for how to add it would be have commands/perf inform the recorders on file change. And have a separate bin of records per file.

matter123 added a commit that referenced this issue Jun 26, 2019
@matter123
Copy link
Collaborator Author

PR has been submitted with the file I originally ran perf on.

jeff-hykin added a commit that referenced this issue Jun 27, 2019
@jeff-hykin
Copy link
Owner

jeff-hykin commented Jun 27, 2019

I created a very jank solution npm run perfall which takes about 10 minutes to run and outputs the performance metrics to a report.json file in the root dir.

@matter123
Copy link
Collaborator Author

Fixed in v1.12.15.

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

No branches or pull requests

2 participants