redhat-developer / redhat-developer/vscode-java

Tips for performance when opening big projects like Keycloak?

Đang mở
#2,537 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Maven performance question
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

I'm working with Keycloak, which is a big code base.

Opening the project is quite frustrating: it takes 5+ minutes for the things to settle down. It seems that just closing and reopening vscode with the project open will take very long as well, at least if there are any changed files (like after small git pull).

I wonder if too much of the code base is compiled since the compilation also shows errors for modules that are not shown when compiling with maven on command line (which takes 2 minutes btw). Maybe the active maven profile is not obeyed? Keycloak code base might have some maven modules that are not maintained anymore and it would be desirable to include only the relevant ones.

I would appreciate any pointers on how to troubleshoot and optimize the performance of opening a big project such as Keycloak.

Thank you!

Environment
  • Operating System: Ubuntu 20.04.4 LTS
  • JDK version: OpenJDK Temurin-11.0.15+10
  • Visual Studio Code version: 1.68.1 (x86)
  • Java extension version: redhat.java@1.8.0
Steps To Reproduce
  1. git clone https://github.com/keycloak/keycloak
  2. open the project
Current Result
Expected Result
Additional Informations

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Không có tệp mã nguồn hoặc bài kiểm thử nào được nêu. Hãy tái hiện báo cáo bằng cách clone Keycloak trên Ubuntu 20.04.4, mở nó trong VS Code 1.68.1 với redhat.java 1.8.0, và quan sát quá trình khởi tạo cũng như biên dịch dự án; điều tra xem các Maven profile hoặc các module không liên quan có được đưa vào hay không. Công việc được xem là hoàn tất khi nguyên nhân đã được ghi lại và có hướng dẫn tối ưu hóa hoặc cấu hình có thể áp dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
devtools, performance
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.